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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MonikaNandhini1
Frequent Visitor

How to add Legend - Additional legend that should tell me total values

Hello everyone here.. 

 

  Plz look into this picture, I chose cluster chart to view Number of closed issues and pending issue. 

But i need one more legend(before closed&pending) that should tell me both( closed + pending ) issues put together seperately 

 

Kindly help me

- Monika

 

Below image referance from Pivot chart - Not power Bi 

legend.PNG

1 ACCEPTED SOLUTION

Hi @MonikaNandhini1 .

 

As refered the solution is the same as for the previous post.

 

  • Created a new table with the following values:
Category ID
Total 1
Status 2

 

  • Added the folowing 3 measures:

 

Total = IF(SELECTEDVALUE('Split'[ID]) = 1 ; COUNT('Table'[Serial Number]); BLANK())

Pending = IF(SELECTEDVALUE(Split[ID]) = 2 ; CALCULATE(COUNT('Table'[Serial Number]);'Table'[Status]="Pending"); BLANK())

Closed = IF(SELECTEDVALUE(Split[ID]) = 2 ; CALCULATE(COUNT('Table'[Serial Number]);'Table'[Status]="Closed"); BLANK())

 

Now create a Stacked Column chart with the following setup:

  • Axis:
    • Cause Area Description
    • Measure
  • Values
    • Pending
    • Closed
    • Total

Final result is in attach PBIX file (file in May version of PBI).

 

You need to also be aware that you need to drill down to the lowest level of the Hierarchy and then sort by the Cause Area Description, also the Hierarchy on the X-Axis need to be kept due to the setup what you can due is to concatenet the labels.

pending_closed.png


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

7 REPLIES 7
dax
Community Support
Community Support

Hi @MonikaNandhini1 , 

You could refer to @MFelix ' s suggestions to see whether it work or not. I suggest you could use Line and stacked column chart to achieve this goal.

Best Regards,
Zoe Zhi

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

Hi..

 

I tried @MFelix solution, i think its not an exact solution what im looking for. 

I already tried Line and stacked column chart, but i need total values in a bar not as a line. Could you help me to get it 

 

Thanks 

Monika 

Hi @MonikaNandhini1 ,

 

Can you share you sample data? I can make the changes to my solution to give the correct result.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi @MFelix  

Thanks for you immediate reply 

 

Plz find below excel data, copy and paste to work out. 

Serial NumberStatusCause Area DescriptionIssue Description
999988ClosedEVC Quality Issue A
996888ClosedEVC QualityIssue B
960669PendingLPT VSTIssue C
998688PendingEVC Quality Issue D
999692ClosedEVC Quality Issue E
960920ClosedLPT VSTIssue F
960893ClosedEVC Quality Issue A
961002ClosedEVC Quality Issue B
961992PendingLPT VSTIssue C
961686PendingEVC Quality Issue D
962479ClosedEVC Quality Issue E
962487ClosedLPT VSTIssue F
963197ClosedEVC Quality Issue A
963189ClosedEVC Quality Issue B
963391PendingEVC Quality Issue C
963668PendingEVC Quality Issue D
964089ClosedLPT VSTIssue E
964100ClosedEVC Quality Issue F
964103ClosedEVC Quality Issue A
964119ClosedLPT VSTIssue B
964169PendingEVC Quality Issue C
964236PendingEVC Quality Issue D
964427ClosedLPT VSTIssue E
964089ClosedLPT VSTIssue F

 

Thanks 

Monika

Hi @MonikaNandhini1 .

 

As refered the solution is the same as for the previous post.

 

  • Created a new table with the following values:
Category ID
Total 1
Status 2

 

  • Added the folowing 3 measures:

 

Total = IF(SELECTEDVALUE('Split'[ID]) = 1 ; COUNT('Table'[Serial Number]); BLANK())

Pending = IF(SELECTEDVALUE(Split[ID]) = 2 ; CALCULATE(COUNT('Table'[Serial Number]);'Table'[Status]="Pending"); BLANK())

Closed = IF(SELECTEDVALUE(Split[ID]) = 2 ; CALCULATE(COUNT('Table'[Serial Number]);'Table'[Status]="Closed"); BLANK())

 

Now create a Stacked Column chart with the following setup:

  • Axis:
    • Cause Area Description
    • Measure
  • Values
    • Pending
    • Closed
    • Total

Final result is in attach PBIX file (file in May version of PBI).

 

You need to also be aware that you need to drill down to the lowest level of the Hierarchy and then sort by the Cause Area Description, also the Hierarchy on the X-Axis need to be kept due to the setup what you can due is to concatenet the labels.

pending_closed.png


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix  Thank you for your time to take my data to get a solution

 

Yes, Now Its working, with few correction made. Ex: mentioned ";" instead of "," 

 

Thank you so much !! 

MFelix
Super User
Super User

Hi @MonikaNandhini1 ,

 

Check the response I gave in the post below, believe that can help you solve your issue.

 

https://community.powerbi.com/t5/Desktop/Stacked-column-chart-in-clustern-column-chart/m-p/1117918#M...

 

If you need help based on your data please tell me.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.