Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
currently i am struggeling within Power BI Desktop.
My goal is...
I want to create a measure which counts the amount of names within my dataset and depending on the amount it should give an output.
For example.
If there are 3 or more distinct names within my table (after filtering using slicer). The Measure should return the Amount of names.
If there are 2 or less distinct names within my table (after filtering using slicer). The Measure should return "blank()".
The screenshot shows, that i am using a slicer. I receive an amount of remaining rows of 4.
Nevertheless the pie chart dont order the 4 values to the gender they have. I assume that the amount of names measure will be calculated on a row level? Any1 an idea how to fix it that the pie chart orders the 4 rows to their gender?
Here the Measure dax:
And Dax Dimension:
Name | City | Sex | Country |
Meier | Berlin | m | Germany |
Müller | Berlin | m | Germany |
Austerjost | Berlin | m | Germany |
Graf | Hamburg | m | Germany |
Brand | Madrid | m | Spanien |
Strothoff | Madrid | m | Spanien |
Kramer | Barcelona | w | Spanien |
Modeste | Porto | w | Portugal |
Federer | Liverpool | w | England |
Thanks already for your help.
Solved! Go to Solution.
Hi @Quakker ,
Is that what you expect?
If so, you can do this:
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Quakker ,
Is that what you expect?
If so, you can do this:
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |