Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have this DAX statement that works but I need to add a second piece of criteria to row 10. I need to have both "Missing Media" OR "Reprocess File".
Solved! Go to Solution.
I think you can use
Has Missing Media? =
VAR _Column =
SELECTCOLUMNS (
FILTER (
ALL ( 'Client Manager Report For Power BI' ),
'Client Manager Report For Power BI'[Event Id]
= EARLIER ( 'Client Manager Report For Power BI'[Event Id] )
),
"1", 'Client Manager Report For Power BI'[DBM Stage]
)
VAR _falg =
CALCULATE (
DISTINCTCOUNT ( 'Client Manager Report For Power BI'[DBM Stage] ),
FILTER (
ALL ( 'Client Manager Report For Power BI' ),
'Client Manager Report For Power BI'[Event Id]
= EARLIER ( 'Client Manager Report For Power BI'[Event Id] )
)
)
RETURN
IF (
_falg = 1
&& ( "Missing Media"
IN _Column
|| "Reprocess File" IN _Column ),
TRUE (),
FALSE ()
)
I think you can use
Has Missing Media? =
VAR _Column =
SELECTCOLUMNS (
FILTER (
ALL ( 'Client Manager Report For Power BI' ),
'Client Manager Report For Power BI'[Event Id]
= EARLIER ( 'Client Manager Report For Power BI'[Event Id] )
),
"1", 'Client Manager Report For Power BI'[DBM Stage]
)
VAR _falg =
CALCULATE (
DISTINCTCOUNT ( 'Client Manager Report For Power BI'[DBM Stage] ),
FILTER (
ALL ( 'Client Manager Report For Power BI' ),
'Client Manager Report For Power BI'[Event Id]
= EARLIER ( 'Client Manager Report For Power BI'[Event Id] )
)
)
RETURN
IF (
_falg = 1
&& ( "Missing Media"
IN _Column
|| "Reprocess File" IN _Column ),
TRUE (),
FALSE ()
)
Hi!
Have you tried just wrapping in an OR() statement? E.g.:
OR("Missing Media" in _Column, "Reproess file" in _Column)
@TomasAndersson - I am extremely new to DAX so I am not quite sure how to do that. Any chance you can send me what the modified line of code should look like? I tried the below and got this error.
Sure,
_falg = 1 OR("Missing Media" in _Column, "Reprocess file" in _Column), TRUE(), FALSE())
So you need to have the "in _Column" in both cases
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.