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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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

Top Solution Authors
Top Kudoed Authors