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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.