March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |