Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MachisukiJ
Helper I
Helper I

Filter the top 5 equipments

Good morning, im having some trouble making an graph that shows the top 5 equipments that had more time stopped and that stopped more times, for an example m1 stopped 30 times and it counts 80 hours stopped m2 stopped 25 times and counts 58 hours stoppe, is there a way to do it ? the amount of equipments is 692 .

4 REPLIES 4
Kishore_KVN
Super User
Super User

Use ALLEXCEPT on the equipment and then create RANK on it this will help you to get the total for that particular equipment irrespective of the period. 

so how do i need to use the ALLEXCEPT im kinda new with dax formula, i need to create a second calculated column or do i just need to put it into the formula ? 

Kishore_KVN
Super User
Super User

Create a Ranking column for hours stopped and then use that ranking column for filtering data.

In below example I have considered 10 equipments and their hours. Also created ranking using below formula:

Hours Ranking = RANKX('Table','Table'[Hours Stopped],,DESC,Dense)

Kishore_KVN_0-1683816149814.png

Then use filters on this visual as per below screenshot:

Kishore_KVN_1-1683816190247.png

 

@MachisukiJ If this post helps, then please consider accepting it as the solution to help other members find it more quickly.THANK YOU!!

 

i tried you solution, i have data that goes from 2020 till now and i think that because of that the formula gave me that ranks 

MachisukiJ_0-1683817060390.png

is there a way to specify the ranks for period ?

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.