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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
vincenttys
Frequent Visitor

Distinct Count Measure and Ranking

Hi,

 

A relative beginner question hopefully some expert here will be able to provide some guidance.

 

I have created a measure for distinctcount from the data i got. Example: my measure now show Monday 4, Tuesday 10, Wednesday 15, Thursday 10, Friday 1, Saturday 20, Sunday 15.

 

I am trying to achive below, is this possible?

Day           Value      Rank

Saturday       20          1

Sunday         15           2

Wednesday  15           2

Tuesday        10          3

Thursday       10          3

Monday         4            4

Friday             1            5

 

Thanks

 

Vince

 

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @vincenttys ,

You can create a measure to rank your data.

RANK =
RANKX ( ALL ( Sheet1[A] ), [Value],, DESC, DENSE )

Sheet1 is your table name, A is your day column and Value is your measure.

Here is the final visual.


rank.PNG

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @vincenttys ,

You can create a measure to rank your data.

RANK =
RANKX ( ALL ( Sheet1[A] ), [Value],, DESC, DENSE )

Sheet1 is your table name, A is your day column and Value is your measure.

Here is the final visual.


rank.PNG

Best Regards,

Eads

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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