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
M_SBS_6
Helper V
Helper V

Subtract and round number

Hi, 

 

I have a measure where I subtract 2 values

Difference=comp_val - app_val.

 

Comp_Val has these values 5,866.610000000010000

6,545.120000000000000

 

App_Val has a value of 

5,866.610000000000000

6,545.119999999999000

 

So my difference is showing as 

0.000000000000000909

0.000000000000001819

 

I really don't need to go into this detail. Ideally I'd like the difference cal to be rounded to the nearest 2 decimal place. 

Any idea how to go about doing this please? 

1 ACCEPTED SOLUTION
Thejeswar
Resident Rockstar
Resident Rockstar

Hi @M_SBS_6 ,

You need to modify the Difference measure as shown below

Difference = ROUND(comp_val - app_val, 2)

 

You can also get this from ribbon by selecting on the measure and setting the no of decimal places

Thejeswar_0-1686731925352.png

 

View solution in original post

1 REPLY 1
Thejeswar
Resident Rockstar
Resident Rockstar

Hi @M_SBS_6 ,

You need to modify the Difference measure as shown below

Difference = ROUND(comp_val - app_val, 2)

 

You can also get this from ribbon by selecting on the measure and setting the no of decimal places

Thejeswar_0-1686731925352.png

 

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.