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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Febin
Frequent Visitor

Stacked Column Chart Showing Count of "Yes" and "No" for Each Item

Hi,

 

I'm new to BI and still learning.

 

I'm trying to create a custom stacked column chart as below (excel):

Febin_1-1673536349457.png

 

 

This is how i'm planning to collect data:

 

Febin_2-1673536436828.png

 

Please advise a solution.

 

Thanks in advance!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

For your consideration, it might be easier to collect information in a format such as:

NameOfficeDesignationTask CompletionTask Type
Person 1AManager A1/1/2023Task 1
Person 1AManager A2/1/2023Task 2

 

But to answer your question for your format, I'd solve it by 

* Transform Data
* Select Columns Task1 and Task2

* Unpivot Columns

and then graph.

Here is a visual of the above steps:

select two tasks and unpivotselect two tasks and unpivot

what table looks like after:

what table looks like afterwhat table looks like after

And then you'll be able to graph like you desire:

pbi outputpbi output

Here is the pbix solution (I also added a calendar relation): https://www.dropbox.com/s/1t0irgdb5kbuld0/helping.pbix?dl=0 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

For your consideration, it might be easier to collect information in a format such as:

NameOfficeDesignationTask CompletionTask Type
Person 1AManager A1/1/2023Task 1
Person 1AManager A2/1/2023Task 2

 

But to answer your question for your format, I'd solve it by 

* Transform Data
* Select Columns Task1 and Task2

* Unpivot Columns

and then graph.

Here is a visual of the above steps:

select two tasks and unpivotselect two tasks and unpivot

what table looks like after:

what table looks like afterwhat table looks like after

And then you'll be able to graph like you desire:

pbi outputpbi output

Here is the pbix solution (I also added a calendar relation): https://www.dropbox.com/s/1t0irgdb5kbuld0/helping.pbix?dl=0 

It worked. That unpivot really did the trick. Thanks a lot!! 

 

Thanks for the pbix file too!!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors