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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.