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
PowerBI_pleb
Frequent Visitor

DAX: Count number of dates with no results

Hi there,

 

I have a results table and a date table that are linked in the model. The date table has all possible dates. The results table follows this structure:

 

locationdateresults
111/10/222
111/10/221
113/10/223
113/10/224
211/10/221
211/10/223
213/10/222
213/10/224

 

I would like to count the number of dates that have no recordings. I have location and date slicers that I would like to use to filter the count. So here we would have a count of 1 for each location as there is no data recorded on 12/10/22. 

 

Can anyone help me with this?

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

That has worked for me. Thank you so much!

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

I have another question relating to this data. I would like to show dates where there is missing data in my visualisations using conditional formatting. I am unable to do this in a line chart as there is no option too. I have also tried highlighting dates with no data in a matrix visual, but the matrix does not show those dates at all, even after selecting "show items with no data". Is there a way around this?

 

Thanks

Hi,

Please show the exact result which you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.