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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
RichOB
Helper IV
Helper IV

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
Solution Sage
Solution Sage

Hi @RichOB 

 

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

Kedar_Pande
Resident Rockstar
Resident Rockstar

@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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.