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
DCrowther
Helper I
Helper I

How to count number of specific date during the month remaining

Hi 

I am looking to calculate the number of paydays remaining during a set period (i.e. paydays left during Tax Year) Its a bit more complicated than just count months between two periods because if a Payday is on the 1st of each month, and i run the report on the 2nd of the month, the output needs to exclude the current month because the 1st of this month has already past

 

Can anyone help with this specific calculation?

Regards

Dan

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @DCrowther ,

 

Could you please share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
judspud
Solution Supplier
Solution Supplier

Hi @DCrowther ,

 

You could add another column in a date table that flags whether or not the date is a pay day or not (1 and 0).

 

Then create a measure that sums the payday column after today(). You can add other filters to the calculating such as the tax year etc.

 

Hope this helps

 

Thanks,

George

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.