cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
rmolinajr Frequent Visitor
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
Moderator v-yuezhe-msft
Moderator

Re: Problem with Accumulated

@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

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

Top Ideas
Users Online
Currently online: 118 members 1,727 guests
Please welcome our newest community members: