Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi Experts
Cannot see my error with the following measure when using contains in a DAX Measure
Days Used =
If('FACT_Scheduler Data_All'[Name] = "John" && contains('FACT_Scheduler Data_All','FACT_Scheduler Data_All'[Subject],"OOO"),0,
If('FACT_Scheduler Data_All'[Name] = "John" && 'FACT_Scheduler Data_All'[Subject] = "Unavailable",0)))
column [Subject] has the following text OOO thrusday & friday
Solved! Go to Solution.
@Anonymous , That is fine as a column, not as measure.
For measure you try like
Days Used =
If(max('FACT_Scheduler Data_All'[Name]) = "John" && contains('FACT_Scheduler Data_All',max('FACT_Scheduler Data_All'[Subject]),"OOO"),0,
If(max('FACT_Scheduler Data_All'[Name]) = "John" && max('FACT_Scheduler Data_All'[Subject]) = "Unavailable",0))
@Anonymous , That is fine as a column, not as measure.
For measure you try like
Days Used =
If(max('FACT_Scheduler Data_All'[Name]) = "John" && contains('FACT_Scheduler Data_All',max('FACT_Scheduler Data_All'[Subject]),"OOO"),0,
If(max('FACT_Scheduler Data_All'[Name]) = "John" && max('FACT_Scheduler Data_All'[Subject]) = "Unavailable",0))
Hi Amit.....Error on my part its a caculated column measure.....sorry
Hi, @Anonymous
Not sure what you mean by 'caculated column measure'.
If your problem has been solved, you could accept the helpful answer as solution to close this thread.
It will help other community members easily find the solution when they get the similar issue.
Best Regards,
Community Support Team _ Eason
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
103 | |
63 | |
45 | |
37 | |
35 |