cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bo_wang5
Helper II
Helper II

Dynamic Waterfall Comparing Current Period to Last Period with Breakdown

I'm trying to create a visual which shows current month vs. last month's sales amount broken down by dealer.  This visual has to update on a monthly basis based on the current sales data's max date.  right now I'm filtering manually, there must be a better way to do this.  

 

bo_wang5_1-1631939166087.png

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @bo_wang5 ,

 

You can use a measure as a filter like so:

Measure =
VAR PreviousMonthStart =
    EOMONTH ( TODAY (), -2 ) + 1
VAR CurrentMonthEnd =
    EOMONTH ( TODAY (), 0 )
RETURN
    IF (
        MAX ( 'Table'[Date] ) >= PreviousMonthStart
            && MAX ( 'Table'[Date] ) <= CurrentMonthEnd,
        1
    )

MEASURE FILTER.PNG

 

 

Best Regards,

Icey

 

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

1 REPLY 1
Icey
Community Support
Community Support

Hi @bo_wang5 ,

 

You can use a measure as a filter like so:

Measure =
VAR PreviousMonthStart =
    EOMONTH ( TODAY (), -2 ) + 1
VAR CurrentMonthEnd =
    EOMONTH ( TODAY (), 0 )
RETURN
    IF (
        MAX ( 'Table'[Date] ) >= PreviousMonthStart
            && MAX ( 'Table'[Date] ) <= CurrentMonthEnd,
        1
    )

MEASURE FILTER.PNG

 

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!