Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Getting Current and Last year Data

Hi, 

 

I would like to know how I can get Current Year and Last Year using a DimTime Table.

I have Filters Like Year and Period.

My DimTime table is not related to the same date each year.

 

Example : My starting year of 2020 is 05/01/2020 and 2021 is 03/01/2021.

 

I need to get the sales count and sales amount from current and last year.

 

I need to get YTD and PTD

 

I am using DirectQuery to do so.

 

Regards,

 

Frank

4 Replies