March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have made a graph that shows each downtime code and its corresponding volume down sorted largest to smallest. Is there a way to display the top 5 wells for the top 5 downtime codes in table format? Thanks
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, I create this data:
Here are the steps you can follow:
1. Create calculated column.
rank = CALCULATE(COUNT('Table'[date]),FILTER('Table','Table'[date]=EARLIER('Table'[date])))
2. Create measure.
Measure =
var _1=RANKX(ALL('Table'),CALCULATE(MAX('Table'[rank])),,DESC,Dense)
var _2=MAX('Table'[rank])
return
IF(_1<=5,_2,BLANK())
3. Result.
Display the number of times per day with a bar graph
Show the top five in a table:
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
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, I create this data:
Here are the steps you can follow:
1. Create calculated column.
rank = CALCULATE(COUNT('Table'[date]),FILTER('Table','Table'[date]=EARLIER('Table'[date])))
2. Create measure.
Measure =
var _1=RANKX(ALL('Table'),CALCULATE(MAX('Table'[rank])),,DESC,Dense)
var _2=MAX('Table'[rank])
return
IF(_1<=5,_2,BLANK())
3. Result.
Display the number of times per day with a bar graph
Show the top five in a table:
You can downloaded PBIX file from here.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous you can try the following measure
M:= RANKX(ALLSELECTED(table[rank to happen for column]),[downtime measure],,DESC)
then you can put that into visula filter and limit that to 5
I am recieving the following error message "A single value for column ‘Gross_BOE_Down’ in table ‘Production_Downtime_Volumes’ cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |