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
bw70316
Helper V
Helper V

Yearly Cumulative Fiscal Year Total (7/1-6/30)

I am trying to calculate the number of sales that occurred during a specific date range 7/1-6/30

 

I tried a TOTALYTD, but that didn't work. I have a Calendar Table that is connected to my Totals Table via a Date for each month. So each entry for July/18 is 7/30/18 to makr when the entry was made into the database.  However, I have original sales dates that I would like to use for my measure. Here was the TOTALYTD I tried that failed and a pic of my model :

 

 

Total Children YTD = CALCULATE(TOTALYTD(SUM('Totals'[Sales]), 'Totals'[Date of Sale], "7/1"))date.png
 
 
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

From the Calendar Table, either drag the Year and Month column to your visual or create 2 slicers and select any one Year and Month.  Then write these measures:

Total sales = SUM('Totals'[Sales])

Total sales YTD = CALCULATE([Total Sales],DATESYTD(Calendar[Date],"30/6"))

Hope this helps.


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

YTD is only going to give you 2019. Have you tried using a date slicer? The slicer is the visualization in the bottom left corner next to the Matrix. 

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.