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
Satch
Helper III
Helper III

Problems with YTD & LY YTD

Hi,

 

I keep having problems to get the salesamount of LYTD

 

_YTD = TOTALYTD(SUM(Salesline[_Turnover]);Salesline[CONFIRMEDDLV])

_YTDLY = CALCULATE([_YTD]; SAMEPERIODLASTYEAR('Date'[Date]))

 

Initial this seems to be working.

 

But when I filter on a brand it gives salesamount for last year, but there were no sales for that brandtill september 2016.

 

Have to say that all saleslines are sliced on 1 specific status out of 6 statusses.

 

 

2 REPLIES 2
v-sihou-msft
Employee
Employee

@Satch

 

I assume Salesline[CONFIRMEDDLV] is date column and you have built the relationship between Salesline[CONFIRMEDDLV] and 'Date'[Date]. Your expression looks correct. Can you share your sample data?

 

Regards,

@v-sihou-msft

Thanks.

What would be the best way to share?

It are pretty big tables. The total pbix (including purch and invent) is 130MB

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.