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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
chavanr
Resolver I
Resolver I

Change decimals in Rank measure

Hi there,

 

Is it possible to have the calculation of Rank based on two decimal places?

 

please see example below:

chavanr_0-1623123211596.png

column 1 is the measure by divide(column 3/column 4)

Rank is calculated based on the % .

I need the 91.71% should give rank 8 .

It is giving different rank because the % is different (upto 4 decimals)

can we have the rank calculated only for 2 decimal places?

 

Cheers,

 

 

1 ACCEPTED SOLUTION

@chavanr 

could you please share the sample data?

I did a test in PBI, please see attachmetn below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
ryan_mayu
Super User
Super User

@chavanr 

maybe you can try use round(measure,2) to make sure only contains to decimal. The 91.71% looks like the same, but actually they are different.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




yes, did that but it is still taking different rank

@chavanr 

could you please share the sample data?

I did a test in PBI, please see attachmetn below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks @ryan_mayu  It works alright !!

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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