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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Sai_Kumar
Frequent Visitor

I am looking for help regarding Power BI Time Intelligence Function, mainly on LYTD.

Hello everyone,

 

I am looking for help regarding Power BI Time Intelligence Function on LYTD.

 

I had YTD, LYTD sales figures. But, the Current LYTD function was providing all the sales for last year. (I am looking for something that LYTD needs to give the data up to the same period the previous year)

 

Sales LYTD = CALCULATE([SalesAUD],DATEADD('Master Calendar'[Date],-1,YEAR))
And

Sales AUD is the total sales.

LYTD.PNG
I want to stop the FY22 LYTD sales data, which are across the current month.

 

Thanks.

2 REPLIES 2
wdx223_Daniel
Super User
Super User

Sales LYTD = if([SalesAUD],CALCULATE([SalesAUD],DATEADD('Master Calendar'[Date],-1,YEAR)))

Hey, Thanks for sharing the knowledge.

It seems like working, what I am looking for. But, Why the total was getting total sales amount for last year instead of summing only those months sales.

LYTD.PNG

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.