Forum Discussion
FrankienessMH
3 years agoNew Member
DAX
I'm new to using DAX and Power BI and I need help with my problem. I'm using the DAX below for validation:
IF(ISBLANK(LOOKUPVALUE('Completed Visits'[ID],'Completed Visits'[ID],'Account Query'[ID__c])),"NO","VISIT COMPLETE")
at the same time, i only want the lookup to look at everything at this column except the value "2".
'Completed Visits'[Status] <> 2
Thanks in advance!
3 Replies
- tamerj1Community Champion
So Satus = 2 is considered Completed or No?
- FrankienessMHNew Member
Not necessarily and I can't remove it because I need that status for another visual. status 2 are pending complete for reference.
- tamerj1Community Champion
Please try
Status =
IF (
ISEMPTY (
FILTER (
CALCULATETABLE (
VALUES ( 'Completed Visits'[ID] ),
'Completed Visits'[Status] <> 2
),
'Completed Visits'[ID] = 'Account Query'[ID__c]
)
),
"NO",
"VISIT COMPLETE"
)