The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now
1. The above is a denormalized table.
2. The grain of the table is Case Number and Line Number
3. I would like to do a SUM of weight BY distinct values of (Case Number and Line Number) to avoid double counting.
Can someone help me with a DAX formula which can give me the right SUM which is 263 (without double counting 15)
Thanks
Rohit
Solved! Go to Solution.
You can use something like:
Measure:
SUMX(SUMMARIZE(TABLE, [CASE NUMBER], [WEIGHT]), [WEIGHT])
You can use something like:
Measure:
SUMX(SUMMARIZE(TABLE, [CASE NUMBER], [WEIGHT]), [WEIGHT])
User | Count |
---|---|
161 | |
111 | |
96 | |
87 | |
75 |
User | Count |
---|---|
158 | |
136 | |
133 | |
81 | |
61 |