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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
New to dax here. I have one condition that I need to return values with multiplication and I was able to make it work with the syntax below
VAR Sample1 = CALCULATE ([Measure1], 'Account'[Account Level 1] = "A")
RETURN
[Measure1] * 0.5
Now I need to include another condition where if 'Account'[Account Level 1] = "B", return [Measure1]
How should I write it?
Thanks!
Solved! Go to Solution.
Hi @fzhang ,
You could create a measure like below:
Measure =
IF (
SELECTEDVALUE ( 'Account'[Account Level 1] ) = "A",
[Measure1] * 0.5,
IF ( SELECTEDVALUE ( 'Account'[Account Level 1] ) = "B", [Measure1] )
)
Best Regards,
Jay
Hi @fzhang ,
You could create a measure like below:
Measure =
IF (
SELECTEDVALUE ( 'Account'[Account Level 1] ) = "A",
[Measure1] * 0.5,
IF ( SELECTEDVALUE ( 'Account'[Account Level 1] ) = "B", [Measure1] )
)
Best Regards,
Jay
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 126 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |