cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Create Filter for Model with 'Or' case

Hi, 

 

I have q model with no meaures calculated. 

I am needing to filter the date on this case

 

Filter whe cancellation.date is null OR cancellation.date > accounting date

 

How do i filter the entire model for this case?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User IV
Super User IV

Re: Create Filter for Model with 'Or' case

@ThePowerBIQueen you can do it by adding a column either using power query or DAX and filter on that column

 

Add following measure using DAX

Filter Date = 
IF( Canellation[Date] == BLANK() || Canellation[Date] > Cancellation[AccountingDate], 1, 0 )

Now you can use Filter Date column in your report/page/visual level filter where value = 0

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

1 REPLY 1
Super User IV
Super User IV

Re: Create Filter for Model with 'Or' case

@ThePowerBIQueen you can do it by adding a column either using power query or DAX and filter on that column

 

Add following measure using DAX

Filter Date = 
IF( Canellation[Date] == BLANK() || Canellation[Date] > Cancellation[AccountingDate], 1, 0 )

Now you can use Filter Date column in your report/page/visual level filter where value = 0

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Datanaut! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors