Sep 25 2024 05:38 AM
Hi guys!
Im having troubles here creating a top5 for my completed trainings, here is the situation:
The purpose of this file is to create KPIs from my sharepoint lists, one of them is the training that have a status of completed, having a card with the total completed trainings (already done) and a ring chart representing the top5.
Sharepoint lists:
AcademyTrainings list columns: TrainingId, TrainingName, and others
AcademyUsercfg list columns: AuthorId, Country
AcademyStatus list columns: TrainingStatusIdId, AuthorId, TrainingId.TrainingId(lookup column from trainings), TrainingId.TrainingName(lookup column from trainings).
AcademyLogs list columns: TrainingStatusIdId, AuthorId
Calendar powerbi table: normal calendar format type
RegionsFinalCount powerbi table: table with two columns -> Country, and Region, with every continent and country.
So my problem basically is, when I create an active relationship between my usercfg sp list, and my regions powerbi table, connecting Country - Country, my topn stops being a top5, as u can see in the image below, so it ignores the topn measure, and just exposes all the completed trainings. Here are the measures im using:
This is the table I created to only get, from the status list, the completed trainings. This way I get the individual quantity, and their name.
-> this is counting all my trainings that have a status of completed.
Completeds = CALCULATE(COUNTROWS('AcademyStatus'), 'AcademyStatus'[TrainingStatusIdId] = "Completed")
-> this is the topn measure I use for my top5.
Sep 25 2024 06:07 AM