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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Check if a value is decreasing over a period of time.

Hi all,

 

This is regarding a performance trend report. Please feel free to share ideas. I have a rolling/moving average measur for my numreric data  for trend analytics and to show the trend, I am using both inbuilt and custom visuals. I want to take it to next level and build something that shows below;

"Over a period of time, if this rolling/moving average is decreasing/increasing", then I would like to show that specific category. The challenge here is to dynamically identify the category for which the rolling average is decreasing/increasing over a period of time(lets say 3 months). Manually I can easily do analysis on charts and figure out which one is decreasing/increasing. 

 

  

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Waterfall charts shows increase and decrease trends.

Capture10.JPG

https://radacad.com/power-bi-waterfall-chart-whats-that-all-about

 

You can tell Power BI to explain increses or decreases in charts as below:

Capture11.JPG

https://docs.microsoft.com/en-us/power-bi/desktop-insights

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

3 REPLIES 3
danextian
Super User
Super User

Hi @Anonymous ,

 

Try this approach. Create these measures for the moving averages this month and last month

Rolling Average CM = 
VAR __LAST_DATE =
    LASTDATE ( 'Table'[Date] )
VAR __DATE_PERIOD =
    DATESBETWEEN (
        'Table'[Date].[Date],
        STARTOFMONTH ( DATEADD ( __LAST_DATE, -2, MONTH ) ),
        __LAST_DATE
    )
RETURN
    IF (
        __LAST_DATE <> BLANK (),
        AVERAGEX (
            CALCULATETABLE (
                SUMMARIZE (
                    VALUES ( 'Table' ),
                    'Table'[Date].[Year],
                    'Table'[Date].[QuarterNo],
                    'Table'[Date].[Quarter],
                    'Table'[Date].[MonthNo],
                    'Table'[Date].[Month]
                ),
                __DATE_PERIOD
            ),
            CALCULATE ( [Sum of Value] )
        )
    )

Rolling Average LM = 
VAR __LAST_DATE =
    DATEADD ( LASTDATE ( 'Table'[Date] ), -1, MONTH )
VAR __DATE_PERIOD =
    DATESBETWEEN (
        'Table'[Date].[Date],
        STARTOFMONTH ( DATEADD ( __LAST_DATE, -2, MONTH ) ),
        EOMONTH ( __LAST_DATE, 0 )
    )
RETURN
    IF (
        __LAST_DATE <> BLANK (),
        AVERAGEX (
            CALCULATETABLE (
                SUMMARIZE (
                    VALUES ( 'Table' ),
                    'Table'[Date].[Year],
                    'Table'[Date].[QuarterNo],
                    'Table'[Date].[Quarter],
                    'Table'[Date].[MonthNo],
                    'Table'[Date].[Month]
                ),
                __DATE_PERIOD
            ),
            CALCULATE ( [Sum of Value] )
        )
    )



​

Create another measure  to compute for the difference betweent the two measures above:

Rolling Average MoM Difference = 
[Rolling Average CM] - [Rolling Average LM]​

Use this measure in your visual. 

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Waterfall charts shows increase and decrease trends.

Capture10.JPG

https://radacad.com/power-bi-waterfall-chart-whats-that-all-about

 

You can tell Power BI to explain increses or decreases in charts as below:

Capture11.JPG

https://docs.microsoft.com/en-us/power-bi/desktop-insights

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.