Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All,
Right now I create a table like below. Those fields are in the Table already. I would like to change the value when Table[Cat] = A and Table[Sub-Cat] = CC to Table[Sub-Cat] = BB. Is it possible to acheive it by just by using DAX formalar (Measure)?
Before
Cat | Sub-Cat | sum(Volume) |
A | AA | 0 |
A | BB | 1 |
A | CC | 2 |
B | AA | 3 |
B | BB | 4 |
B | CC | 5 |
C | AA | 6 |
C | BB | 7 |
C | CC | 8 |
After
Cat | Sub-Cat | sum(Volume) |
A | AA | 0 |
A | BB | 3 |
B | AA | 3 |
B | BB | 4 |
B | CC | 5 |
C | AA | 6 |
C | BB | 7 |
C | CC | 8 |
Volume Total by the condition : =
SWITCH (
TRUE (),
SELECTEDVALUE ( Categories[Cat] ) = "A"
&& SELECTEDVALUE ( Sub_Categories[Sub-Cat] ) = "CC", BLANK (),
SELECTEDVALUE ( Categories[Cat] ) = "A"
&& SELECTEDVALUE ( Sub_Categories[Sub-Cat] ) = "BB",
CALCULATE (
SUM ( Data[sum(Volume)] ),
Categories[Cat] = "A",
Sub_Categories[Sub-Cat] = "BB"
|| Sub_Categories[Sub-Cat] = "CC"
),
SUM ( Data[sum(Volume)] )
)
Is it possible to do it in "Measure" instead of adding new column / create new table behind? Thank you.
Hi,
Please try the below measure.
The columns that are refered in the measure are from the same table.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
42 | |
30 | |
27 | |
27 |