cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors