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
RichOB
Post Partisan
Post Partisan

Need help with a date measure please

Hi, if I want to get a count of the days with no Date Completed date between 03/06/2024 and 01/09/2024, what would that look like? I want a card to show the number 2 please.

Customer NumberDate ReportedDate Completed
101/04/202401/04/2024
201/05/202401/06/2024
315/05/2024 
403/06/2024 
501/08/202401/09/2024
601/07/202401/09/2024
701/08/202401/09/2024
801/09/2024 

 

Thanks!

 

1 ACCEPTED SOLUTION

@RichOB ,

Please refer the below DAX and output:

Kedar_Pande_0-1727528849988.png

 

Your Kudos/Likes are much appreciated! 
If this post helps, please consider Accepting it as the solution to help the other members find it more quickly.
Regards,
Kedar Pande
www.linkedin.com/in/kedar-pande

 

View solution in original post

8 REPLIES 8
suparnababu8
Super User
Super User

Hi @RichOB 

 

Can you share pbix file with dummy data along with your input and expected output?

Kedar_Pande
Super User
Super User

@RichOB , Could you please elaborate on your request in more detail? 

Hi @Kedar_Pande sure, 

 

Between the dates of 03/06/2024 and 01/09/2024 there have been 5 total instances being reported, 2 of which do not have an end date as the cell is blank. I'd like a measure that will show the count of instances where the Date Completed cell is empty specifically between the date range above.  So in this circumstance, 2 out of the 5 have not been completed yet. I can then use that measure to show on a card the number 2 and also use it in other calculations. I hope that helps.

 

Thanks

@RichOBHow will you determine the date range? Is it set, or would you like to include a slicer to choose the start and end dates for calculating the blank instances between those dates?

@Kedar_Pande yeah the date range is already set, no need for the slicer.

 

Thanks

@RichOB ,

Please refer the below DAX and output:

Kedar_Pande_0-1727528849988.png

 

Your Kudos/Likes are much appreciated! 
If this post helps, please consider Accepting it as the solution to help the other members find it more quickly.
Regards,
Kedar Pande
www.linkedin.com/in/kedar-pande

 

@suparnababu8 Just for more context, I have a measure that gives me the total of 5 between that date range, I just need to add something to this to only bring back the total of the Date Completed where the cell is blank:

Reported = (
    CALCULATE(
        Count('Sheet1'[Customer Number]),
        'Sheet1'[Date Reported]>=DATE(2024,6,3),
        'Sheet1'[Date Reported]<=Date(2024,9,1)
    ))

Thanks

Hi,

Does this measure work?

Reported = CALCULATE(Count('Sheet1'[Customer Number]),'Sheet1'[Date Reported]>=DATE(2024,6,3),'Sheet1'[Date Reported]<=Date(2024,9,1),'Sheet1'[Date Reported]=blank())

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

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.