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
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
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.