Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a case in which I'm struggling a bit.
I have a fact table that reflects votes of different teams (1 row=1 Vote) and a dimension table that contains the information of each team (Name, Team member Size). Both tables are related by TeamId
My purpose is to calculate the 3 top teams with the highest votes average per member and the top 3 bottom teams with less average of votes per member. The top 3 are not an issue.
The thing is that the dimension table could contain teams that are not voting and therefore the partitipacion is 0 %. I would like to exclude those from the visual.
When applying a filter on participation and a Bottom 3 to teams, seems that the bottom 3 is applied first and then is filtering out the participation 0. I have more than 3 values with participation =0, so the visual is being represented as empty.
I would like this to happen the other way around, first filter out the participation =0, and from the rest just pick the bottom 3.
I guess this filtering needs to be done in a measure, but I'm not able to give with the key.
Thanks in advance for the help!
Solved! Go to Solution.
Hi @Anonymous ,
Please check if this is what you want:
Votes_ =
COUNT ( 'fact table'[Team] ) + 0
Bottom =
VAR Rank_ =
IF (
[Votes_] > 0,
RANKX (
FILTER ( ALLSELECTED ( 'dimension table' ), [Votes_] > 0 ),
CALCULATE ( [Votes_] ),
,
ASC,
DENSE
)
)
RETURN
IF ( Rank_ >= 1 && Rank_ <= 3, 1 )
For more details, please check the attached .pbix file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
yep, thanks
Hi @Anonymous ,
Please check if this is what you want:
Votes_ =
COUNT ( 'fact table'[Team] ) + 0
Bottom =
VAR Rank_ =
IF (
[Votes_] > 0,
RANKX (
FILTER ( ALLSELECTED ( 'dimension table' ), [Votes_] > 0 ),
CALCULATE ( [Votes_] ),
,
ASC,
DENSE
)
)
RETURN
IF ( Rank_ >= 1 && Rank_ <= 3, 1 )
For more details, please check the attached .pbix file.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |