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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Sebarg123
New Member

SUMATORY LEYEND IN A ACUMULATIBE BAR GRAPH

Sebarg123_0-1680313823912.png

Hello, i have this Graph, i want to have a sumatory in the program hours, for example in the CE program item i have one leyend with 1.078, and another two with 539 i want to show in the first 1.078, in the second one 1617(1.078+539) and in the third one 2.156(1.617+539), i looked for a solution, for this easy work, but i cant found one, please if someone can help me i am going to by so grateful.

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Sebarg123 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1680836789521.png

vjianbolimsft_1-1680836853069.png

Then add a new column to the table to give the legend column a sort:

vjianbolimsft_2-1680836941013.png

Then apply the measure:

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[X-Axis]),[Sort]<=SELECTEDVALUE('Table'[Sort])))

Final output:

vjianbolimsft_3-1680837162312.png

Best Regards,

Jianbo Li

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

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @Sebarg123 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1680836789521.png

vjianbolimsft_1-1680836853069.png

Then add a new column to the table to give the legend column a sort:

vjianbolimsft_2-1680836941013.png

Then apply the measure:

Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALLEXCEPT('Table','Table'[X-Axis]),[Sort]<=SELECTEDVALUE('Table'[Sort])))

Final output:

vjianbolimsft_3-1680837162312.png

Best Regards,

Jianbo Li

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

Thanks to you!, i didnt think that it could be that easy ! 

Helpful resources

Announcements
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.