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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jahnabi123
New Member

Dax calculation for DIVIDE

I am facing a very strange issue. I have 2 measures both data type decimal.
I am dividing one by the other. Now, even if both the measures have the same value, the result is not 1.
This is the dax: 

Household factor = DIVIDE( [Total Households],[Total Household cust],0)
calc.png
3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @jahnabi123 ,

 

There may be a tiny gap between the two measures, so you may try to limit the decimal places for the measures.

 

Household factor =
DIVIDE (
    ROUND ( [Total Households], 2 ),
    ROUND ( [Total Household cust], 2 ),
    0
)

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@jahnabi123 , can share formula for

[Total Households],[Total Household cust]

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

Total Household = SUM(account_history[a_se_hh_tot])

Total Household cust = CALCULATE(SUM(account_history[a_se_hh_tot]), ALL(account_history[CEM], account_history[Fee Model], account_history[funding_type_code],account_history[cohort_golive2],account_history[date_golive], account_history[customer_name], account_history[employer_name] ))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.