Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Greetings all,
I'm new to Power BI/Dax in general so apologize if this might seems obvious but I couldn't manage to find a way to do it.
I basically have a dimension category here I need to sum AA & BB then CC & DD. And create a final table B
TABLE A: DETAILS | ||
Category | Value | |
AA | 10 | |
BB | 20 | |
CC | 30 | |
DD | 40 |
TABLE B: EXPECTED OUTCOME | ||
Category | Value | Output |
AA | 10 | 30 |
BB | 20 | 30 |
CC | 30 | 70 |
DD | 40 | 70 |
@AKHIL_RB_123 , First Create a new column
Cat =
Switch(True() ,
[Category] in {"AA", "BB"} , "Cat1" ,
"Cat2")
Now a new measure
sumx(filter(Table, [Cat]=earlier([Cat]), Table[Value])
or
sumx(allselected(Table), [Cat] = Max([Cat]) ), [Value])
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
87 | |
81 | |
64 | |
49 |
User | Count |
---|---|
121 | |
109 | |
81 | |
67 | |
67 |