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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Iris03
Regular Visitor

How to dynamic show the Rolling 4 Quarters result

I have questons about how to dynamicly to cauculte the Rolling result. as we need to have the rolling data result in my work. I wonder if there have the easy way to caculate the result dynamicly in Power BI? Thanks in advance.  

 

Each R4Q shows the 4 Quarters Data.Sum of the current quarter+ the previous three quarters.and sum of the selected quarter to 

ie.

If selected Q1 then FY23 R4Q data will be  Year 2023 Q1,2022 Q2,Q3,Q4,FY22R4Q will be 2022 Q1,2021 Q2,Q3,Q4, ,FY21R4Q will be 2021 Q1 only 1 quarter, as no 2020 data in the form.

If selected Q2 then FY23 R4Q data will be  Year 2023 Q1,Q2 2022 Q3,Q4,FY22R4Q will be 2022 Q1,Q2 ,2021 Q3,Q4, ,FY21R4Q will be 2021 Q1,Q2 as no 2020 data

If selected Q1 then FY23 R4Q data will be  Year 2023 Q1,2022 Q2,Q3,Q4,FY22R4Q will be 2022 Q1,2021 Q2,Q3,Q4, ,FY21R4Q will be 2021 Q1 only 1 quarter.

If selected Q3 then FY23 R4Q data will be  Year 2023 Q1,Q2 ,Q3,2022 Q4,FY22R4Q will be 2022 Q1,Q2 Q3,2021 Q4, ,FY21R4Q will be 2021 Q1,Q2,Q3.

If selected Q3 then FY23 R4Q data will be  Year 2023 Q1,Q2 ,Q3,2022 Q4,FY22R4Q will be 2022 Q1,Q2 Q3,2021 Q4, ,FY21R4Q will be 2021 Q1,Q2,Q3.

Iris03_0-1694682368235.png

 

1 REPLY 1
lbendlin
Super User
Super User

Read about the WINDOW functions.

 

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
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.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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