cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chiu2003
Frequent Visitor

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
Super User
Super User

Hi @chiu2003 ,

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
Super User
Super User

Hi @chiu2003 ,

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

I hope this helps!

@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 @chiu2003 ,

 

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

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

 

 

Kudos are always appreciated! Thanks

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors