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 All,
I need to show top 20% of total value data.
How to do it and show in table and bar graft
Problem Below:
I have data (figure below) , I want to show the top 20% of data description.
Then, the table data should be show only Self Learning, Vacation and General.
Or can apply it on bar graph ( Have a mark to show that is the top 20% total value).
Solved! Go to Solution.
Hi @Kamaizziati,
Suppose [%GT Hours] is a measure, then, based on it, please create a below measures:
rank = RANKX(ALLSELECTED('Table'),[%GT Hours],,DESC,Dense)
Check is Top 20% = IF([rank]<=CALCULATE(COUNTROWS('Table'),ALLSELECTED('Table'))*0.2,1,0)
And [Check is Top 20%] into visual level filters, and set it value to equal 1.
Regards,
Yuliana Gu
Hi @Kamaizziati,
Suppose [%GT Hours] is a measure, then, based on it, please create a below measures:
rank = RANKX(ALLSELECTED('Table'),[%GT Hours],,DESC,Dense)
Check is Top 20% = IF([rank]<=CALCULATE(COUNTROWS('Table'),ALLSELECTED('Table'))*0.2,1,0)
And [Check is Top 20%] into visual level filters, and set it value to equal 1.
Regards,
Yuliana Gu
Hi @v-yulgu-msft,
Im create the %GT Hours from power bi calculation (figure below) that is Percent of grand total.
How I want create DAX measure for %GT Hours.
Thank You
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |