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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
salexa
Helper II
Helper II

Display in Clustered column chart values from columns as categories

Hi,

 

I have in a dataset(sql table) 3 columns : Inprogress, Resolved, Workaround that can have 5 posible values: 0-70%, 70-90%, 90%-100%, 100-120% , >120%

salexa_0-1708620673776.png

As a requiremnts it's the request to transform the values of these columns in categories and on colum to have a count of n=the number of occurances for each category, something like below:

salexa_1-1708620873178.png

 

Do you have an idea how I can solve it?

 

Thanks,

Irina

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @salexa ,

 

You can start by using the unpivot column in the power query like below:

vkongfanfmsft_0-1708671195228.png

then create below formula:

Measure = COUNTROWS('Table')

vkongfanfmsft_1-1708671681555.png

 

Best Regards,
Adamk Kong

 

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

3 REPLIES 3
Anonymous
Not applicable

Hi @salexa ,

 

You can start by using the unpivot column in the power query like below:

vkongfanfmsft_0-1708671195228.png

then create below formula:

Measure = COUNTROWS('Table')

vkongfanfmsft_1-1708671681555.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

HI, 

 

thanks  fo replying, I've check it and it seems to work in  import.

 

but i forgot to mention that my powerbi report it's linked to a Tabular cube, live connection so I can't apply Power Query.

 

Tahnks,

Irina

amitchandak
Super User
Super User

@salexa , Are you looking to bucket a measure?

is so refer

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.