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
Srinivas3350
Helper II
Helper II

Please need an urgent in DAX on growth with Current fiscal months and previous year fiscal months

Hello, I am stuck with 1 issue for a long time. I have attached screen shot below

Srinivas3350_0-1702458485163.png

 so the issue is i am showing  revenue by month wise if i select another year it will show revenue of that year and in last year column it will show last year revenue of whatever year we select  and in the margin column it is just margin-last year. so now if you see in the below screenshot the previous year revenue is for 2022-january is 3715 and so on.... in another table  but if you see in the above screenshot the last year is showing  4109 the issue is it is calculating the current periods with last year periods example this year fiscal month jan started on 2nd and ended on 27th but in 2022 it started on 3rd and ended on 28th so it should with this periods but it calclating with all previous year with current periods.. can anyone help me please.

Srinivas3350_1-1702458677351.png

this is the DAX i am using calculate last year revenue

Last year = CALCULATE([Margin sum], DATEADD('Dim Time'[Full_Date],-1, YEAR))



1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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