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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
VALUES used in below measure calculation is returning error, can someone help to rewrite the DAX...[Status] values can be NULL, 0,100,2,3,4,5....TIA
Solved! Go to Solution.
Than you need an itirator.
Try
SUMX(
VALUES('Calendar'[Date]),
SWITCH(
'VOD'[Status],
2, [CValueTARGET]*100, --{or, if this isn't a measure, 'VOD'[CValueTARGET]*100}
3, [CValuePLAN]*100,
'VOD'[Status]
)
You may need to replace VALUES('Calendar'[Date]) by the field you're iterating over (I'm not sure wether it's by date, by products, both, etc...)
Hi @kumsha1 ,
Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!
Hope it helps,
Community Support Team _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
How about:
SWITCH(
SELECTEDVALUE('VOD'[Status]),
2, [CValueTARGET]*100, --{or, if this isn't a measure, SELECTEDVALUE('VOD'[CValueTARGET])*100}
3, [CValuePLAN]*100,
SELECTEDVALUE('VOD'[Status])
)
Than you need an itirator.
Try
SUMX(
VALUES('Calendar'[Date]),
SWITCH(
'VOD'[Status],
2, [CValueTARGET]*100, --{or, if this isn't a measure, 'VOD'[CValueTARGET]*100}
3, [CValuePLAN]*100,
'VOD'[Status]
)
You may need to replace VALUES('Calendar'[Date]) by the field you're iterating over (I'm not sure wether it's by date, by products, both, etc...)
@kumsha1 , Try like
DAILYCValue = IF(Max('VOD'[Status])=2,[CValueTARGET]*100,
IF(Max('VOD'[Status])=3,[CValuePLAN]*100,
max('VOD'[Status])))
You can also try switch true
Hi @amitchandak ,
MAX will work to satify the IF conditions but ELSE will always show MAX(Status) for all other scenarios whereas we need to show actual status.
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.