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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
zpaul_010
Helper I
Helper I

How to stack 2 columns in the legend?

 

How can I stack Column 1: Pending Request count and Column 2: 100 Days Old in one bar in stacked column chart? It seems I can only use one column on the Legend. 

 

Basically, I want to show that Joe has 50 open tickets and 8 of those 50 tickets or 16% are more than 100 days old. And he failed the target as he has more than 10% of 100 days old tickets

 

Output should be somethng like this: 

Capture9.PNG

 Is this possible?

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @zpaul_010,

 

So you want to count the pending states records and use the '100 days' as the category, right?

If this is a case, you can refer to below steps if it suitable for your requirement.


1. Use 'Technical', "100 days", 'Pending Status' to create the 100% stacked column chart.(Drag 'Technical' to axis, "100 days" to legend, 'Pending Status' to value and switch it to summary mode count)

 

2. Turn on the data label, drag 'Pending Status' to page level filter and filter the 'pending' records.

 

3. Add a constant line as the target line, set the value to 0.1.

7.PNG

 

BTW, current power bi not support to drag multiple columns to legend field; if you use legend, you can't drag multiple columns to value field.

 

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

HI @zpaul_010,

 

So you want to count the pending states records and use the '100 days' as the category, right?

If this is a case, you can refer to below steps if it suitable for your requirement.


1. Use 'Technical', "100 days", 'Pending Status' to create the 100% stacked column chart.(Drag 'Technical' to axis, "100 days" to legend, 'Pending Status' to value and switch it to summary mode count)

 

2. Turn on the data label, drag 'Pending Status' to page level filter and filter the 'pending' records.

 

3. Add a constant line as the target line, set the value to 0.1.

7.PNG

 

BTW, current power bi not support to drag multiple columns to legend field; if you use legend, you can't drag multiple columns to value field.

 

Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

Can you provide some sample data?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Capture10.PNG

 

 

100 days = if(DATEDIFF('ManageEngine Report Framework'[Created Time].[Date],TODAY(),DAY)>=100,"Yes", "No")

 

PendingStatus = if('ManageEngine Report Framework'[Request Status] = "closed" || 'ManageEngine Report Framework'[Request Status] = "Cancelled" || 'ManageEngine Report Framework'[Request Status] = "Resolved","Closed","Pending")

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors