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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
baijumohan1990
Helper II
Helper II

Totals of the Decimal numbers not showing correctly in power bi

Hi ,

Noticed power bi is not computing the totals correctly if the values are decimal. in the below example Rating total would be 0.0008 + 0.0007 = 0.0015, but total showing is 0.0011. 

 

baijumohan1990_0-1645531376200.png

 

 

Any help much appreciated.  Same issue occurs at the total KPI's in Card visuals as well. 

1 ACCEPTED SOLUTION

@baijumohan1990 , This Sum of Avg, you need have group by

 

Sumx(Values(Data[PromoTitle]),calculate(DIVIDE([unique views],[CLOSING BASE],0))  )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
baijumohan1990
Helper II
Helper II

@amitchandak  Thanks for the reply.   Rating is merely a division of  unique views and total base.  below forumla used : 

DIVIDE([unique views],[CLOSING BASE],0)
i edited the question to include the total base also for your better understanding.   When I changed the measure formula to Sumx(data,DIVIDE([unique views],[CLOSING BASE],0))  against each line i am getting a different value. for eg :  65/81027 is 0.0008 but with sumx the result is 0.0011

@baijumohan1990 , This Sum of Avg, you need have group by

 

Sumx(Values(Data[PromoTitle]),calculate(DIVIDE([unique views],[CLOSING BASE],0))  )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks. the measure need to be computed on the cumulative level so 0.0011 is expected result. But have an issue when i computed another measure mulitplying rating and frequency  ( 0.0011 * 170 )  the result is 0.0195 , but the expected result is 0.0187 . could you give your thoughts on this?

Thank you  :).  will try this out. the old formula's didnt work because of the DIVIDE function?

 

Anonymous
Not applicable

HI @baijumohan1990,

According to your description, it seems like a common measure total issue.
For this scenario, you can refer to the following blog to know how to handle multiple aggregate calculations in measure expression:

Measure Totals, The Final Word 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@baijumohan1990 , You need share formula, Grand total are recalculated .

 

You can force sum using, assuming Rating measure

 

Sumx(Values(Table[PromoTitle]), [Rating] )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors