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.
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."
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 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |