Join 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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi All
I will appreciate your help as I'm trying to figure out my roadblock in power bi, here is the scenario
I'm trying to create a measure base on the value on the field, the table have already 3 measures but I want to create a 4th but the formula is different based on the column value.
I'm trying to invoke the if but it didn't detect the field name since its a calculated measure.
| Product | Measure 1 | Measure 2 | Measure 3 | Measure 4 |
| A | 100 | 150 | 300 | if Product = A then Measure 1 + Measure 3 else measure 1 + Measure 2 + Measure 3 |
| B | 100 | 150 | 300 | if Product = A then Measure 1 + Measure 3 else measure 1 + Measure 2 + Measure 4 |
| C | 100 | 150 | 300 | if Product = A then Measure 1 + Measure 3 else measure 1 + Measure 2 + Measure 5 |
Thank you
Solved! Go to Solution.
@DemiHaung
IF(Selectedvalue(Tablename[Product])= "A", your result , your other result
you can't pick the column name directly in a measure so this is the approach! Share your Kudos
Proud to be a Super User!
Hi DemiHaung, Try this
Measure 4 =
VAR SelectedProduct = SELECTEDVALUE(Table[Product])
RETURN
IF(
SelectedProduct = "A", [Measure1]+[Measure2]+[Measure3],
BLANK()
)
If found helpful mark as a solution or give Kudos for efforts. Thanks!
Hi DemiHaung, Try this
Measure 4 =
VAR SelectedProduct = SELECTEDVALUE(Table[Product])
RETURN
IF(
SelectedProduct = "A", [Measure1]+[Measure2]+[Measure3],
BLANK()
)
If found helpful mark as a solution or give Kudos for efforts. Thanks!
thank you it works, I never thought I can use the selectedvalue this way.
@DemiHaung
IF(Selectedvalue(Tablename[Product])= "A", your result , your other result
you can't pick the column name directly in a measure so this is the approach! Share your Kudos
Proud to be a Super User!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 56 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |