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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jon_H1991
Frequent Visitor

TotalYTD function with slicer

Hi,

 

I having issues with the totalYTD function for a cumulative yearly total filtered by a location slicer. The TotalYTD function is summing correctly however, when filtering by 'site', it doesn't filter correctly. I'm hoping someone can help.

 

Measure:

Total Revenue YTD =
TOTALYTD(
[Total Revenue YTD], 'Date'[Date])

Jon_H1991_0-1695116733319.png

Kind Regards,

Jon

5 REPLIES 5
RSC
Helper I
Helper I

Okay, no worries at all,

 

Total Revenue YTD =
TOTALYTD(
    [Total Revenue], 
    'Date'[Date], 
    ALL('Table_name_for_site'[Site])
)

 

Can you try this one!

 

Jon_H1991
Frequent Visitor

Hi RSC,

 

It is slightly better but missing the other two sites; it sums up against just one.

Jon_H1991_2-1695126927292.png

 

Kind Regards,

Jon

 

Jon_H1991
Frequent Visitor

To add, I have also tried the following with no luck:

calculate([Total Revenue],
filter (ALLSELECTED('Date'[Date]),
'Date'[Date] <= MAX( 'Date'[Date])))
RSC
Helper I
Helper I

Hi, @Jon_H1991 
Have you used 

Total Revenue YTD =
Calculate(TOTALYTD(
[Total Revenue YTD], 'Date'[Date]))
Jon_H1991
Frequent Visitor

Hi RSC,

 

Same result i'm afraid.

Jon_H1991_0-1695122383307.png

Kind Regards,

Jon

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.