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
PKPavanK
Regular Visitor

Stacked Column chart with values from multiple columns from Same file

Hey,
I am new to this tool. I have queried the data from Azure. The file has 7 columns. I want to visualize that in a way as in attached image. I tried creating custom columns with null values for each of columns and tried to visualize, but didn't work and I think its not the right way. I should be bothered only about counts not the data. I am not able to figure out how do I do it.

 

IMG_20171201_123341.jpg


1 ACCEPTED SOLUTION
v-ljerr-msft
Employee
Employee

Hi @PKPavanK,

 

If I understand you correctly, you can firstly use the Upivot Columns option in Query Editor to unpivot the columns that you want to show on the chart, and then create a new column to indicate if the Value is null, then you should be able to show the Attribute column as Axis, new column as Legend, count of new column as Values to get your expected result. 

 

For more details about how to Pivot and Unpivot with Power BI, you can refer to this article. Smiley Happy

 

Regards

View solution in original post

3 REPLIES 3
v-ljerr-msft
Employee
Employee

Hi @PKPavanK,

 

If I understand you correctly, you can firstly use the Upivot Columns option in Query Editor to unpivot the columns that you want to show on the chart, and then create a new column to indicate if the Value is null, then you should be able to show the Attribute column as Axis, new column as Legend, count of new column as Values to get your expected result. 

 

For more details about how to Pivot and Unpivot with Power BI, you can refer to this article. Smiley Happy

 

Regards

I have one more question. After visualizing the unpivoted data, I get to see the chart as required. But, if I want to see the row level data it is not possible due to the table being unpivoted. Any iput on how can I go ahead to achieve that?

Thanks!
That helped.

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.