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
PowerBI-P
Frequent Visitor

DAX Calculation getting wrong

Hi all,

 

I've used below DAX for calculations for (O.Total Equi.Cases) and each row of calculations are right but total is wrong. Please advise.

 

Here O.Total Units means (Outbound[Units Desptached])

 

O.Total Equi. Cases =
IFERROR
    (
       SUMX(
             Outbound, Outbound[Units Despatched] / Outbound[Unique SKUs.Units per Case]
            )
       ,BLANK()
    ) + [O.Total Cases]

 

PowerBIP_0-1697018420005.png

Thanks,

PV

2 ACCEPTED SOLUTIONS
mohitkumawat
Super User
Super User

Try Below one Method,

Create a new Calculated Column 
 O.Total Equi. Cases =Outbound[Units Despatched] / Outbound[Unique SKUs.Units per Case]
Create a new Calculated Column 
O.Total Equi. CasesV1= [O.Total Cases]+ [O.Total Equi. Cases]

 

View solution in original post

Hi Mohitkumawat,

 

Thank you so much for your help. It's working now and you're briliant 👌.

 

I was spent lot of hours on this to resolve this issue and always trying to work on measures calcuations side but didn't think your way.

 

I should have posted my query before itself but didn't realise.

 

Once again thank you very much for your help.

 

Thanks

PV

View solution in original post

3 REPLIES 3
PowerBI-P
Frequent Visitor

Hi Mohit,

 

Hope you're doing well.

 

I need one more help please. Example of data given below and would like to find out below queries using dax.

 

Find out distinct count order no.s whatever cases/units desp and excludes 0 (Zeros).

Find out Line no.s whatever cases/units desp and excludes 0 (Zeros).

 

Hope you can understand my queires. If not, please let me know.

 

PowerBIP_0-1699540043841.png

 

I look forward to hear from you.

 

Thanks

PV

 

 

 

mohitkumawat
Super User
Super User

Try Below one Method,

Create a new Calculated Column 
 O.Total Equi. Cases =Outbound[Units Despatched] / Outbound[Unique SKUs.Units per Case]
Create a new Calculated Column 
O.Total Equi. CasesV1= [O.Total Cases]+ [O.Total Equi. Cases]

 

Hi Mohitkumawat,

 

Thank you so much for your help. It's working now and you're briliant 👌.

 

I was spent lot of hours on this to resolve this issue and always trying to work on measures calcuations side but didn't think your way.

 

I should have posted my query before itself but didn't realise.

 

Once again thank you very much for your help.

 

Thanks

PV

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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