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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Mannai
Helper I
Helper I

Total to Date Vs Total by the end of the month

Hello everyone !!

So i'm currently working in a HR database where i need to show total entry by today and for the rest of the month
FOR EXAMPLE : 16/02/2022 we have 14 new employees And by the end of the month which is 28th of february the cumulative total will be 25. I tried to calculate it with ENDOFMONTH() but when i put my slicer to the 16th of february it shows the same SUM which is 14 in both cards

Thanks for your time 🙂 

1 ACCEPTED SOLUTION
Mannai
Helper I
Helper I

Thank you for your response 
 i actually resolved using this method :

Terminated by end of month =
 
CALCULATE( 'effectif total'[Terminated Employees],DATESBETWEEN('Date'[Date],MIN('Date'[Date]),MAX('Date'[End of Month])))

and when i filter i get the correct numbers

View solution in original post

2 REPLIES 2
Mannai
Helper I
Helper I

Thank you for your response 
 i actually resolved using this method :

Terminated by end of month =
 
CALCULATE( 'effectif total'[Terminated Employees],DATESBETWEEN('Date'[Date],MIN('Date'[Date]),MAX('Date'[End of Month])))

and when i filter i get the correct numbers
amitchandak
Super User
Super User

@Mannai , with help from time intelligence

MTD and full month

examples

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))

 

This month Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH('Date'[Date])))

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.