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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SachinC
Helper V
Helper V

Empty field - counts

Hi,

I have a field in my database with dates, some have missing values.

I want to create a simple chart that shows which dates have missing values. What is the best way to represent this please?

Also, to follow on - I have another date which I have calculated the difference - i.e. date2-date1, how can I present the difference in days in a chart with the missing dates?  Just need a few pointers please.

Regards,

S

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @SachinC,

 

Have you tried the solution provided above? Does it work in your scenario? If you still have any question, feel free to post it here.Smiley Happy

 

Regards

Phil_Seamark
Microsoft Employee
Microsoft Employee

Hi @SachinC

 

If you have a date table that has all dates, and you have a relationship between your date table and your data table, one option is to add a column to your date table that counts the number of missing days from your child table.  This worked for me, but you'll need to substitute your own table name in. 

 

If this helps then we can solve your other issue.

 

Missing Dates = 
        IF(
            CALCULATE(
                COUNTROWS('Table1')
                )>0,
                --- THEN ---
                0,
                --- ELSE ---
                1
                )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.