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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
hdbavda
Frequent Visitor

Column Filter for PowerBI Table

Hi,

 

I am attempting to display a set of documents from a SharePoint source into PowerBI. Some of the documents have expiration dates, and some are just "null" values. I am trying to hide the expired documents with the logic -- when an expiry date of a document is less than today, hide the document. But please note that I would like the null value docs to also display. I have tried using expiration date filters but so far been unsuccessful. Any guidance/help would be highly appreciated. Thank you

 

HD

1 ACCEPTED SOLUTION
christinepayton
Super User
Super User

You could add a calculated column that flags the items you want to display. You can use an if-statement with an "or" (|| is "or" in DAX) that says if the field is greater than today date OR is blank, return true, else false (or use 0/1 as returns). Then you can use that in the filter. 

View solution in original post

1 REPLY 1
christinepayton
Super User
Super User

You could add a calculated column that flags the items you want to display. You can use an if-statement with an "or" (|| is "or" in DAX) that says if the field is greater than today date OR is blank, return true, else false (or use 0/1 as returns). Then you can use that in the filter. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors
Top Kudoed Authors