Forum Discussion
Required Dax Correction / Help
You're welcome.
- 123abc2 years agoCommunity Champion
Hi talespin !
I cant work out with your suggstions and method plz guide me with sample pbix file data.
Here is sample data please guide me, help me how to solve this issue and make net total with SUMX or with any other method.
PBIX File and Supporting Data:
https://drive.google.com/file/d/1VlDRSNO5uNnfH8mZxcLXT_W4QE1QEat-/view?usp=sharing
Explanation 1Explanation 2
- talespin2 years agoSolution Sage
hi 123abc
Please use this measure. Exported to csv with original measure and sum is 1455. Please note that this measure will always calculate at this level Account Number, Party Name and Branch. If you happen to include another dimension column to visual, you will have to adjust SUMMARIZE.
This is how this measure is working.
Creating a table using summarize with Account Number, Party Name and Branch. Since SUMX is an iterator, it will iterate each row of result of SUMMARIZE.
Each combiation of Account Number, Party Name and Branch will act as a filter for your measures
[CM MTD Sales] and [Qualified Units Nov 23 Onwards].Sell Out Units Jan 24 =SUMX(SUMMARIZE('Customer Master', 'Customer Master'[ACCOUNT_NUMBER], 'Customer Master'[PARTY_NAME], 'Customer Master'[BRANCH]),VAR TotalSum = [CM MTD Sales]VAR TotalQualified = [Qualified Units Nov 23 Onwards]RETURNIF(TotalSum = TotalQualified,TotalSum,IF(TotalSum > TotalQualified,TotalQualified,IF(TotalQualified > TotalSum,TotalSum,0))))