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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
guilherme_gq
Helper I
Helper I

TOTALYTD dont respect the inclusion of new column in table

Hi!

i created a measure "Acum" for accumulate the column "Value" for the months.

 

Acum= TOTALYTD( SUM ('Table'[Value]), 'Table'[Date], FILTER(ALL('Table'),'Table'[Date]<=MAX('Table'[Date]),)"31/12")

 

m-YYValueAcum
jul/1811
ago/1823
set/1836

 

 


This works, but my trouble is when i try to add a new column in table. When i include, the values not consider the expression. Is something like this:

 

Genderm-YYValueAcum Correct Value
Mjul/18010
Mago/18131
Mset/18364
Fjul/18111
Fago/18132
Fset/18062

 

The "Acum" repeat a value returned in table with date as single column. But now, i need the value like the colum "Correct Value", calculating the cumulative value per gender or any other column added.

 

 

Someone have any idea?

1 ACCEPTED SOLUTION

Hi @guilherme_gq,

 

 

Since you have used the TotalYTD, we don't need to filter dates like that. Please try the formula below. And the date context should be in the table visual.

TotalSaldoAcumYTD 3 =
TOTALYTD ( SUM ( Agregados[TotalSaldoAcum] ), Agregados[AnoMes], "31/8" )

TOTALYTD_dont_respect_the_inclusion_of_new_column_in_table

 

NOTE: any link here is available to the whole internet. Please don't input sensitive data.

 

Best Regards,

Dale

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

View solution in original post

4 REPLIES 4
v-jiascu-msft
Employee
Employee

Hi @guilherme_gq,

 

Try this formula please. If it doesn't work, please provide a sample of the original data.

Acum =
TOTALYTD (
    SUM ( 'Table'[Value] ),
    'Table'[Date],
    FILTER ( ALL ( 'Table'[Date] ), 'Table'[Date] <= MAX ( 'Table'[Date] ) ),
    "31/12"
)

Best Regards,

Dale

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

doesnt work, Dale. Man Sad

 

 

Download sample here! I separated in two tables, with wrong value when i include state in first table.

 

https://ufile.io/8osmc

Hi @guilherme_gq,

 

 

Since you have used the TotalYTD, we don't need to filter dates like that. Please try the formula below. And the date context should be in the table visual.

TotalSaldoAcumYTD 3 =
TOTALYTD ( SUM ( Agregados[TotalSaldoAcum] ), Agregados[AnoMes], "31/8" )

TOTALYTD_dont_respect_the_inclusion_of_new_column_in_table

 

NOTE: any link here is available to the whole internet. Please don't input sensitive data.

 

Best Regards,

Dale

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

Thanks, Dale!

thats worked Man Very Happy

 

about your note, dont worry. This case is a simulation based in sample datased that i downloaded.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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