Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I'm trying to do a simple OR() function using DIrect Query mode but it's not their. I found on the web that if I select "Allow unrestricted measures in DirectQuery mode." in Options -> Direct Query, this should resolve my problem, but this check box don't exist anymore.
Any ideas how to workaround this issue?
Hey,
you can use this
|| (two pipe signs) instead of OR and
&& instead of AND
This measure
Measure = CALCULATE( SUM('Table1'[value]) , FILTER( 'Table1' , 'Table1'[color] = "red" || 'Table1'[color] = "yellow" ) )
creates this:
Hopefully this is what you are looking for.
Regards,
Tom
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |