cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
EdouardPBI
Frequent Visitor

YTD and SAMEPERIODLASTYEAR problem (multiple fiscal year)

Hello everyone

i have a little problem with this case 

 

 

I have companies with different closing dates,

I have a calendar table that includes all the dates of each fiscal year by company,

my problem: I can't retrieve the YTD and the sameperiodlastyear

Does somebody have an idea ??

TotalYTD or Sameperiolastyear don't work

 

thanks a lot 🙂

 

the différent exercice 

EdouardPBI_0-1678620516877.png

calendar table per compagny (cle_date_ste = concat ( cod_ste & sales date) 

 

EdouardPBI_1-1678620572962.png

 

EdouardPBI_2-1678620613201.png

 

EdouardPBI_3-1678620663186.png

 

 

 

 

1 ACCEPTED SOLUTION

unfortunately I already did , as you can see I already have a calendar table

the problem is that my exercise table has duplicate values ​​because I finally have a date for two companies, hence the concatenation of date + ste

View solution in original post

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

You may create a calendar  table using calendaryearauto(fiscal year end month) and link it to your table(s)

https://learn.microsoft.com/en-us/dax/calendarauto-function-dax

Padycosmos_0-1678623793603.png

This video might help:

https://www.youtube.com/watch?v=ef-KmCB-qXY

 

unfortunately I already did , as you can see I already have a calendar table

the problem is that my exercise table has duplicate values ​​because I finally have a date for two companies, hence the concatenation of date + ste

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors