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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors