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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
rmolinajr
Frequent Visitor

Problem with Accumulated

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!

1 REPLY 1
Anonymous
Not applicable

@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

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.