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
sandraCortes
Helper I
Helper I

How to include rows with date null using a date range slicer

Hello Everyone,

I have an issue that I don't know how to handle, someone can help me?

In a report we have a slicer for a date range and a table that retrieves data according to that filter and other slicers. However the user wants to include in addition to the rows that correspond to the date range, all rows that have a null date.

 

I added to the fact table query all the rows with null date and I can show them in the table, however when  the user applies the date range filter these ones dissapear from the table. This is because of this relationship:

 

sandraCortes_0-1710973926784.png

 

I appreciate your ideas. 

 

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@sandraCortes 

try to delete the relationship between two tables and create a measure

Measure = if(ISBLANK(max('Table'[date])),1,if(max('Table'[date])<min('Table 2'[date])||max('Table'[date])>max('Table 2'[date]),0,1))
 
add the measure to the visual filter and set the value to 1
11.PNG
 
pls see the attachment below




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

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@sandraCortes 

try to delete the relationship between two tables and create a measure

Measure = if(ISBLANK(max('Table'[date])),1,if(max('Table'[date])<min('Table 2'[date])||max('Table'[date])>max('Table 2'[date]),0,1))
 
add the measure to the visual filter and set the value to 1
11.PNG
 
pls see the attachment below




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

Proud to be a Super User!




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.