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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MYDATASTORY
Resolver I
Resolver I

Automatic Month Change on Dial Gauge Date Filter

Hi, 

 

I was just wondering if anyone can advise on how to set an automatic filter on Dial Guage on Date filter to change automatically when Month-end and set the sales to zero i.e, sum(Sales) which give total sales.

i.e I have a column with Total Sales and  Sales Date, I want the sales to reset to zero automatically once a new month start.

At the end of the month 31/10/2019:         Oct Total Sales = $100 

At the beginning of the Month 0/11/2019: Nov Total sales = $ 0

Thanks so much 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

HI @MYDATASTORY ,

According to your description, It sounds like you want to achieve monthly rolling calculation on gauge visual. You can try to write a measure with conditions on month and date based on selected date:

Measure =
VAR currDate =
    MAX ( Date[Date] ) // seleceted calendar date
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( Table ),
            'Table'[Date] <= currDate
                && MONTH ( Table[Date] ) = MONTH ( currDate )
        )
    )

Regards,

Xiaoxin Sheng

View solution in original post

really great and Thanks so much😀

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @MYDATASTORY ,

According to your description, It sounds like you want to achieve monthly rolling calculation on gauge visual. You can try to write a measure with conditions on month and date based on selected date:

Measure =
VAR currDate =
    MAX ( Date[Date] ) // seleceted calendar date
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( Table ),
            'Table'[Date] <= currDate
                && MONTH ( Table[Date] ) = MONTH ( currDate )
        )
    )

Regards,

Xiaoxin Sheng

really great and Thanks so much😀

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (6,781)