cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## TOTALYTD Function : Cumulativ doesn't work

Hello,

I get a problem with the function TOTALYTD. In the screenshot below, the datas highlighted in green are correct.

The total per trimestre (Total1) is well displayed via this syntax :

``Total1 = SUM(APM[ID])``

In the fourth column, i would like to display, a total cumulativ. Each line "Total1" has to be added to the previous one. I use this code without success. I get the same result that the ones' calculated in the column "Total1".

``````VCA =
TOTALYTD ( [Total1], APM[creationDate] )``````

Below the table used for the data.

An idea ?

Thx

1 ACCEPTED SOLUTION
Community Support

Hi  @NCLSOG ,

Here are my test process

To achieve your goal, you can follow these steps:

Here are my test data:

1.Open Transform data and split TrimeStre column and merge  Annee column and TimeStre.1 column

2.Create two measures by using dax

``Total1 = SUM('Table'[ID])``
``````VCA =
VAR _table = SUMMARIZE(ALL('Table'),'Table'[Merged],"_value",[Total1])
RETURN
SUMX(
FILTER(_table,
[Merged]<=MAX('Table'[Merged])),[_value])
``````

3.Create a table and use merged column ,two measures

4.Final output

In order for you to solve the problem faster, you can refer to the following documentation

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,

Albert He

2 REPLIES 2
Community Support

Hi  @NCLSOG ,

Here are my test process

To achieve your goal, you can follow these steps:

Here are my test data:

1.Open Transform data and split TrimeStre column and merge  Annee column and TimeStre.1 column

2.Create two measures by using dax

``Total1 = SUM('Table'[ID])``
``````VCA =
VAR _table = SUMMARIZE(ALL('Table'),'Table'[Merged],"_value",[Total1])
RETURN
SUMX(
FILTER(_table,
[Merged]<=MAX('Table'[Merged])),[_value])
``````

3.Create a table and use merged column ,two measures

4.Final output

In order for you to solve the problem faster, you can refer to the following documentation

How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,

Albert He

Super User

Time Intelligence functions require a calendar table that is contiguous and covering.

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information or anything not related to the issue or question.

If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.