Forum Discussion

Lio123's avatar
Lio123
Icon for Helper II rankHelper II
8 months ago
Solved

Need Urgent Help on SamePeriodLastYear

Dear Pros,  Can you please help me to calculate the below? I have the sales data of 2024 & 2025 in the same table.      1. I want to calculate the difference between 2025 month on month data a...
  • v-ssriganesh's avatar
    8 months ago

    Hi Lio123,
    Thank you for posting your query in the Microsoft Fabric Community Forum.

    I’ve reproduced your scenario in Power BI Desktop using a Date dimension and same-month comparison logic.
    The month-on-month (same month last year) difference and % difference are working as expected at Month, Category, and SubCategory levels.

    Based on the reproduction, the output matches the requirement you described (e.g: Jan-2025 vs Jan-2024, Feb-2025 vs Feb-2024). For your reference, I’m attaching the .pbix file so you can review the model, measures and visuals used.

     

    Best regards,
    Ganesh Singamshetty.

  • Praful_Potphode's avatar
    8 months ago

    Hi Lio123 ,

    Assuming you have a Fact Table connected to a DIm table, you can use attached pbix as reference for ALL YOY,MOM,QOQ calculations.

     

    Please give kudos or mark it as solution once confirmed.

     

    Thanks and Regards,

    Praful