Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
alecsonline
Helper I
Helper I

Stupid question about dates filtering using OR

Hi all, I already know it is a stupid question for you.... but not for me!
As per image below I have a column were a Cancellation is shown, if the item has been cancelled, or it is empty if the item is active.
 
I need to show the situation of the items that were still "active" on a certain date, for example reading the situation on 19/08/2018 I have to tell to PowerBI:
 
count the lines that have "DATACXLREALE" >19/08/2018 OR that have that field empty.
 
So the question is: how should I write the FILTER formula in order to translate the "OR" in DAX formulas?
 
In excel it would be OR(DATACXLREALE>19/08/2018; DATACXLREALE="")
 
Thank you very much in advance, Alessandro
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@alecsonline its the same way 

 

Result = IF(OR(DATACXLREALE>19/08/2018; DATACXLREALE=""),STATOREALE1)

and then you can distinctcount the result column

 

Here is the DAX UG for that.

https://msdn.microsoft.com/en-us/query-bi/dax/or-function-dax

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@alecsonline its the same way 

 

Result = IF(OR(DATACXLREALE>19/08/2018; DATACXLREALE=""),STATOREALE1)

and then you can distinctcount the result column

 

Here is the DAX UG for that.

https://msdn.microsoft.com/en-us/query-bi/dax/or-function-dax

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.