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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vincenttys
Helper I
Helper I

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.