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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi!
I'm with problem in filter to o accumulated, need filter the accumulated to get the month previous of month chosen by the filter.
This is the code used to do the accumulated.
CALCULATE(
SUM([VALOR]);
FILTER(
ALLSELECTED('DIM_DATA'[DIA]);
ISONORAFTER('DIM_DATA'[DIA]; MAX('DIM_DATA'[DIA]); DESC)
)
)
This get the month current.
Thank you!
@rmolinajr,
What fields do you use to create the visual and what fields do you use to create the filter?
In your scenario, do you get expected result when creating a new measure with the DAX below? If not, please describe your desired result with sample data.
Measure= CALCULATE([Accumulated],DATEADD('DIM_DATA'[DIA],-1,MONTH))
Regards,
Lydia
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 107 | |
| 42 | |
| 32 | |
| 26 |