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 Team,
Below my data but when select TOPN 5 its display duplicate also but I need only TOP 5 values
Current its display 7 bars but i need only 5 bars in chart(I need only top 5 Employees mean A,C,B,D,F)
Name | No |
A | 10 |
B | 8 |
C | 9 |
D | 7 |
E | 7 |
F | 7 |
G | 7 |
H | 5 |
I | 4 |
wrong out my like(its display 7 bars i need only 5 bars)
Expected output:
I need only top 5 Employees mean A,C,B,D,F
Solved! Go to Solution.
Hi, @Anonymous
According to your description, you want to show just 5 bars in the chart. I think you can add an index column in power query editor, you can follow my steps:
And you can get what you want, like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
According to your description, you want to show just 5 bars in the chart. I think you can add an index column in power query editor, you can follow my steps:
And you can get what you want, like this:
You can download my test pbix file here
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Assumed No as measure.
rank = rankx(ALL(Table[Name]),[No],,desc,dense) + rand()/100
CALCULATE([No], TOPN(5, ALL(Table[Name]), [rank]), values(Table[Name]))
As the values are same it will give 5 but can not assure which 5 for same value
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 |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |