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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Need a custom Grand Total

Hi all,

 

I have a unusual calcuation as below DAX formula. (AMAZ50 with different calculation logic).

 

I can get correct sub total but I still cannot get a correct grand total given a few round testing.

 

Sorry for I cannot upload a sample file due to large file size, but can anyone give me some suggestion?

 

Capture1.PNGCapture2.PNG

1 ACCEPTED SOLUTION
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

Try this measure to get the correct grand total:
Total= SUMX(VALUES(Customer Group), Outstanding Order will ship by EOM)

I hope this helps!

View solution in original post

3 REPLIES 3
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

Try this measure to get the correct grand total:
Total= SUMX(VALUES(Customer Group), Outstanding Order will ship by EOM)

I hope this helps!

Anonymous
Not applicable

@Tanushree_Kapse 

 

Thanks. It is working and thanks for that simple last step.

 

Do you think I can further improve the DAX of "Outstanding Order will ship by EOM" as we may have some new Amazon code in further?

 

The behind logic is that only AMAZ50 with own calculation logic and the rest customers will follow the Other logic.

Hi @Anonymous ,

 

In the return statement...you could do this:

Return IF(Selectedvalue(Customer Group)= "AMAZ50", AMAZ50, Others)

 

 

Kudos are always appreciated! Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors