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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
aqsa31
Helper II
Helper II

Exclude null date only when 'between' range is selected

I have a table similar to this

aqsa31_0-1697622329451.png

and a date slicer 

aqsa31_1-1697622384399.png

 

What I want is that when a date slicer is applied like in this case the table should display only two rows '23 Feb' and '26 Feb'. Not the other two rows where the started at is null. However when no date filter is applied the table should be the complete table including all the null dates like this 

 

aqsa31_2-1697622525710.png

Here is the pbix file 

https://we.tl/t-9bANgKt2l4

 

 

 

 

 

1 ACCEPTED SOLUTION

IsFiltered = IF(ISFILTERED('Table'[Started at]) && ISBLANK(SELECTEDVALUE('Table'[Started at])),0,1)

Create a measure like this and apply filter on the table to see only values where IsFiltered is 1.


When no filters:

bolfri_0-1697624084362.png



With filters:

bolfri_1-1697624119645.png

 





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

Proud to be a Super User!




View solution in original post

5 REPLIES 5
bolfri
Super User
Super User

Hi,

you can use https://wetransfer.com/ and share a link with pbix file. 🙂 It will be easier to help you with this challenge.





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

Proud to be a Super User!




Thank you so much, I have updated the post with the pbix file 

IsFiltered = IF(ISFILTERED('Table'[Started at]) && ISBLANK(SELECTEDVALUE('Table'[Started at])),0,1)

Create a measure like this and apply filter on the table to see only values where IsFiltered is 1.


When no filters:

bolfri_0-1697624084362.png



With filters:

bolfri_1-1697624119645.png

 





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

Proud to be a Super User!




One more thing if you could help. I want the scorecards to be filtered as well , so in this case the value should show 2 instead of 4 

 

aqsa31_0-1697635229941.png

 

I tried applying the filter on this scorecard but it remains static and doesn't change 🤐

 

Wish I could accept it a million times, Thank youuu

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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