Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
116 | |
77 | |
57 | |
47 | |
39 |
User | Count |
---|---|
167 | |
119 | |
61 | |
58 | |
51 |