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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Show the accumulated balance with a filter

Hello,

 

I have the accumulated balance of an account. For example, season 16-17. When I use a filter and filter for season 16-17, the balance that appears is that of that period and what I would like is that the accumulated balance.

Is this possible to do? If possible, how can it be done?

Thank you very much and regards.

Slicer acumulado.jpg

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Please check if the following DAX returns your expected result.

Saldo running total in Mes = 
CALCULATE(
	SUM('Diario1'[Saldo]),
	FILTER(
		ALLSELECTED('Calendario'[Fecha]),
		Calendario[Fecha]<=MAX(Calendario[Fecha])
	)
)



Regards,

View solution in original post

16 REPLIES 16
vanessafvg
Super User
Super User

you would need a date or a sequence number like an index to accumulate the data.  Are the seasons linked to dates?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hello,

 

Seasons are associated with dates. There is a table that shows the relationship between dates and seasons.

Tabla Calendario..jpgThank you very much for your help.

 

 

 

 

Anonymous
Not applicable

@Anonymous,

You can follow the instructions in the blog below to create cumulative total. If you need exact DAX for your scenario, please help to share sample data of the two tables and post the relationship between the two tables.

http://www.daxpatterns.com/cumulative-total/

Regards,
Lydia

Anonymous
Not applicable

Hello Lydia,

 

The information that has passed me is very interesting and valuable.

 

In my case, it is not to get the accumulated, which I have already achieved, but when I use a slicer shows me the difference of the accumulated period that I frame with the previous period and what I want is to show the accumulated until the period marked.

 

Thank you very much and best regards.

Anonymous
Not applicable

@Anonymous,

What formula do you use to create accumulated balance? Could you please post raw data of your tables or PBIX file so that I can test? 

Regards,

Anonymous
Not applicable

Hello,

 

@Anonymous

 

The formula I have used is the one created by the quick measures which is the following:

 

Saldo acumulado =
CALCULATE(
 'ACCOUNT_INFORMATION'[ACTIVO];
 FILTER(
  CALCULATETABLE(
   SUMMARIZE(
    'CALENDAR';
    'CALENDAR'[NumTemporada];
    'CALENDAR'[Temporada]
   );
   ALLSELECTED('CALENDAR')
  );
  ISONORAFTER(
   'CALENDAR'[NumTemporada]; MAX('CALENDAR'[NumTemporada]); DESC;
   'CALENDAR'[Temporada]; MAX('CALENDAR'[Temporada]); DESC
  )
 )
)

 

Thank you very much

 

Anonymous
Not applicable

@Anonymous,

Could you please share sample data of your original tables?

Reagrds,
Lydia Zhang

Anonymous
Not applicable

@Anonymous

 

Hello Lydia,

 

I work with the following tables:

Calendar table
 

Calendario.jpg

 

 

 

Data table
 
 

 

Account_Information.jpg

 

Balance table

 

Balance_table.jpg

 

And here you can see the relationship between the different tables
Relations.jpgThank you very much ande best regards.

 

 

 

 

 

 
 
 
Anonymous
Not applicable

@Anonymous,

I don't see the ACTIVO field in your data table, and I am not sure which fields you use to create relationship between the tables. Would you mind sharing me the PBIX file via Private message and post expected result in a table so that I can provide you appropriate DAX?

Regards,

Anonymous
Not applicable

@Anonymous

 

Hello,

 

How can I send the file privately?

 

Thank you very much and best regards.

Anonymous
Not applicable

@Anonymous,

Please refer to https://community.powerbi.com/t5/Welcome-to-the-Community/How-to-send-private-messages/td-p/232.

Also ensure that you send expected result to me.

Regards,

Anonymous
Not applicable

@Anonymous

 

Hello Lydia,

 

I do not know how to insert the file into the message. How can you insert it?

 

Sorry for the inconvenience.

 

Thank you very much and best regards.

Anonymous
Not applicable

@Anonymous,

You can upload PBIX file to OneDrive and post shared link of the file via Private message.

Regards,

Anonymous
Not applicable

Hi @Anonymous

 

Did you see the file I shared privately with you?

 

Thank you very much and best regards.

Anonymous
Not applicable

@Anonymous,

Please check if the following DAX returns your expected result.

Saldo running total in Mes = 
CALCULATE(
	SUM('Diario1'[Saldo]),
	FILTER(
		ALLSELECTED('Calendario'[Fecha]),
		Calendario[Fecha]<=MAX(Calendario[Fecha])
	)
)



Regards,

Anonymous
Not applicable

Hi @Anonymous,

 

It is correct.

 

Thank you very much and best regards.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors