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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
espinozan
Helper I
Helper I

Rolling Calculation

Hello everyone,

 

I currently have a rolling trend in my report and it works great. However, I'm trying to get my visuals to show one year worth of data using this trend but for some reason it currently shows 5 Qtrs instead of 4. My data ranges from January 2017 to April 2017. My trend is based on a Boolean Statement. If True then apply the 12M Rolling Trend, If false, show all data. How can I get it to show Qtr 3 and 4 in year 2016 and Qtr 1 and 2 in 2017? The "True" currently ranges from April 1 2016 to April 1 2017.

Bar chart.PNG

 

12M Rolling Trend = 

       IF('Calendar'[Date]< MAX('Calendar'[Date])-365,FALSE(), 

            IF('Calendar'[Date]> MAX('Calendar'[Date]), FALSE(), 
                    
                   TRUE() ) )

Thank you for your help.

 

4 REPLIES 4
cs_skit
Resolver IV
Resolver IV

If you use builtin time intelligence you might want to take a look at using custom time intelligence instead.

http://databear.com/2016/11/08/power-bi-tip-dynamic-calendar-table/

There you can easily add overall Quarter numbers and make sure you show only 4 quarters ever by doing easy range selection like CurrentQuarter-3.

 

Hi @cs_skit,

 

Thank you for your reply, I've created the table in the Query Editor. But im not sure how this could be implemented into my data. Do you mind explaining further? I'm a begginer with Power BI so all of this is kind of new to me.

 

What do you mean I could add overall Quarter numbers by a range selection?

 

Hi @espinozan,

Have you resolved your issue? If you have, please mark the right reply as answer. If you have not, could you please share more details or your sample table, and list the expected result for further analysis?

Best Regards,
Angelia

Yes in the calendar table you add an index for the quarters. Then you need a measure like "This Quarter" and just select by Quarter between this quarter and quarter - 3.

You could even do more complex stuff like join your calendar table with a quarter table and a fiscal year table.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.