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

Be 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

Reply
NavaneethaRaju
Helper IV
Helper IV

Need Measure or column(Ranking the Measure values)

Hi, 
I want to rank the measure value respective of column. i enclosed the sample data. can you please suggest any measure or column to rank the measure values. And based on that rank i want apply the specific colors over there. I enclose one format i want to my result would be like  that. 

% of usage = no procedures/Total procedures.
 

NavaneethaRaju_0-1657798660415.png

Tag IDSet IDSet DescriptionSystemTag OwnerOrder OwnerNo. Of ProceduresTotal Procedures% Of UsageRank
297965.905COLCOLCCGN5771%1
297965.905COLCOLCCSL2729%2
907932.903MARS MARSCSCS2540%2
907932.903MARS MARSCSIH3560%1
1053904.907PRESPRESAMAM4850%1
1053904.907PRESPRESAMPP/AH4850%1

 Please advice. 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

You can also check the conditinoal formatting for the font color as well.

 

Picture1.png

 

 

Percent of usage measure: = 
AVERAGEX( Data, Data[No. Of Procedures] / Data[Total Procedures] )

 

Rank measure: =
RANKX (
    FILTER ( ALL ( Data ), Data[Tag ID] = MAX ( Data[Tag ID] ) ),
    [Percent of usage measure:],
    ,
    DESC
)

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

Please check the below picture and the attached pbix file.

You can also check the conditinoal formatting for the font color as well.

 

Picture1.png

 

 

Percent of usage measure: = 
AVERAGEX( Data, Data[No. Of Procedures] / Data[Total Procedures] )

 

Rank measure: =
RANKX (
    FILTER ( ALL ( Data ), Data[Tag ID] = MAX ( Data[Tag ID] ) ),
    [Percent of usage measure:],
    ,
    DESC
)

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

jcalheir
Solution Supplier
Solution Supplier

Hi

 

DAX has a native RANKX Function you can use to rank table columns or measures.

 

Check out this video

https://www.youtube.com/watch?v=3u0WJFKxGJk

 

and further documentation on RANKX function

https://docs.microsoft.com/pt-pt/dax/rankx-function-dax

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

amitchandak
Super User
Super User

@NavaneethaRaju ,

Rank = rankx(filter( allselected(Table[Tag ID], Table[Order Owner]), [Tag ID] =max(Table[Tag ID]) ), [Procedures % ],,desc,dense)

 

You can use color measure for conditional formatting and use that using field value option

 

example

Switch(true(),
[SLA] = 1 , "Green" ,
[SLA] >= .5 , "Amber" ,
"Red "
)
)

 

How to do conditional formatting by measure and apply it on pie?
https://www.youtube.com/watch?v=RqBb5eBf_I4&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L
https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.