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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
deb_power123
Helper V
Helper V

How to visualize rows with null values of dates in a selected dynamic date range

Hi Everyone,

There is a scenario as explained below.I have a student table with column names as below:-

  1. StudentID
  2. StudentName
  3. LastAttendanceDate
  4. StudentType

Below is my input excel file data :-

StudentIDStudentNameLastAttendanceDateStudentType
100Mary02-05-2011 10:45Fulltime
100Mary Fulltime
100Mary04-05-2011 12:45Fulltime
100Mary06-05-2011 15:45Fulltime
100Mary Fulltime
100Mary08-05-2011 19:45Fulltime
100Mary09-05-2011 12:45Fulltime
101John02-05-2011 10:45Part Time
101John03-05-2011 11:23Part Time
101John04-05-2011 10:45Part Time
101John06-05-2011 15:49Part Time
101John Part Time
101John08-05-2011 19:45Part Time
101John09-05-2011 12:45Part Time

In my visualization,I have a date slicer as shown below where I can set dynamic minimum and maximum date ranges to diplay the rows in a table visualization.

1.JPG

Is it feasible for us to select the date ranges in dateslicer and display the rows where the values of  Dates in the  Last AttendanceDate column are set to null?

 

Expected Output:

For example : In date range 06-05-2011 to 09-05-2011 as per the input data source above, there are two nulls so when we select this date ranges  06-05-2011 to 09-05-2011 in date slicer, it should return the rows as under:-

100Mary Fulltime
101John Part Time

 

while if we select the date range in slicer visualization from 02-05-2011 to 08-05-2011 then it should return the three rows as stated below:-

100Mary Fulltime
100Mary Fulltime
101John Part Time

 

Is there a possiblity to get these rows with null values of the date ranges and display on table visualization on dynamic selection of the date slicer?

Any possible DAX to handle this?

Please suggest your thoughts, truly appreciate for all your inputs.

 

Kind regards,

 

Sameer

1 REPLY 1
Pragati11
Super User
Super User

Hi @deb_power123 ,

 

Have you tried using the option to "Show items with no data" ?

Pragati11_0-1615284740625.png

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.