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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GabrielPuig
Frequent Visitor

Acumulate pivot Formula

Hi everybody

 

I 'm worwing whit a custom report and i use this Dax to calculate the value,

 


Saldo Balance=
SUMX (
Reporting_Balanace;
CALCULATE (
SUM (Consolidated [BALANCE]) / 1000 * -1;
FILTER (
ALL (Reporting_Balanace);
PATHCONTAINS (Reporting_Balanace [Path]; EARLIER (Reporting_Balanace [ID_Report_Balance]; 1))
)
)
)

This calculate works well, the poblem is when i try to accumulate the value month by mont

I've Tryed with the follow dax

Saldo total acumulado = CALCULATE([Saldo Balance]; FILTER(ALLSELECTED(Consolidada);Consolidada[Fecha]<=MAX(Consolidada[Fecha])))

 

Issue totalrunning.png

 

 

 

Any idea how to do that works

Thank you very much for you time

Gabriel

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi GabrielPuig,

 

So the table 'Consolidada' and 'Reporting_Balanace' are two tables, right? They have relationship, right? The issue may caused by you cannot use "allselected" in one table to filter another table. Suppose they have relationship based on column [Index], you may modify your measure like pattern below and check if it can solve your issue.

 

Saldo total acumulado =
CALCULATE (
[Saldo Balance];
FILTER (
ALL ( Reporting_Balanace );
Reporting_Balanace[Index] IN VALUES ( Consolidada[Index] )
)
)

Regards,

Jimmy Tao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.