Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
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
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😀
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 38 | |
| 36 | |
| 29 | |
| 28 |
| User | Count |
|---|---|
| 127 | |
| 88 | |
| 78 | |
| 66 | |
| 65 |