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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
nj17
Helper III
Helper III

How to bring all distinct values of a column in stacked bar chart

Hi all,

 

I need to bring below values N/A, no ,yes of a column in to a stacked bar chart.

nj17_0-1629699312665.png         nj17_1-1629699362997.png  

Kindly help.Do I need to create measures for each distinct values?

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @nj17 ;

I made a simple sample and you could set distinct count in "N/A,yes,no"  field.

vyalanwumsft_0-1629860265538.png

The final output is shown below:

vyalanwumsft_2-1629860435420.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yalanwu-msft
Community Support
Community Support

Hi, @nj17 ;

I made a simple sample and you could set distinct count in "N/A,yes,no"  field.

vyalanwumsft_0-1629860265538.png

The final output is shown below:

vyalanwumsft_2-1629860435420.png

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ryan_mayu
Super User
Super User

@nj17 

could you pls provide some sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




amitchandak
Super User
Super User

@nj17 , Create a measure with the distinct count of a column that you want and use this column as a legend

 

distinctcount(Table[Value])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Can you please help me why its showing me same count and % in chart.

I have used column in legend and measure in value

 

nj17_0-1629710071938.png

 

Thank You @amitchandak 

Also if I have 10 columns and I created 10 measures then how can I show all of them as below in a single visual

 

nj17_0-1629701698282.png

 

 

@nj17 , You can have multiple columns or legends not both

 

You have clustered stacked visual if needed

https://appsource.microsoft.com/en-us/product/power-bi-visuals/wa200001934?tab=overview

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors