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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Count Values In Each Row (4 options) need it for stack bar chart

Hello,

 

I have a ticketing system I made with four options currently. ABF, GPON, Light Green and Not available on each address that is submitted for review.

My data is coming from a sharepoint list into power bi. 

 

I need a way to count the number of times each word is in here per "Ticket Status". (Across if that makes sense) 

I will attatch a screenshot. I am trying to create a bar chart that will tell me how many were ABF, GPON, Light Green and Not available per ticket status. I will attatch photos to help with this. Basically I need to count the values for Completed. 

 

Things to note, 

 

I have 40 "Potential Address Results" columns #1-#40

and I have a TicketStatus Column with options unassinged, assigned, working, and completed. 

 

Completed is the only important one here 

 

I cannot unpivot the data 

 

I need it to look this like... please help! 

 

Thank you 

9 REPLIES 9
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Could you share relevant screenshots to further clarify your question? Please save the screenshot locally before uploading,

Best Regards,
Community Support Team _ Eason

tamerj1
Community Champion
Community Champion

@Anonymous 

best option is to unpivot the 40 columns using power query. Once done the rest is simple. 

Anonymous
Not applicable

@tamerj1 

Stupid question.. how do I do that? 

 

What I was trying to do now was take each column something like 

Calculate(Countrows( Table name ( column ) = "ABF") 

 

But if this is easier I will totally do it! You have no idea how much you are helping me. 

 

@Anonymous 

Open the query editor.

Select the 40 columns > right click > select unpivot

Anonymous
Not applicable

I tried to take your advice but it broke my query. I had to contact microsoft and they could not figure it out. Do you have another option that you know of to be able to  look at the filters for each column and give me a total such as this? I have 40 columns 

@Anonymous 

So sorry for that!

nothing in my mind now. I will thibk it over again and let you know if any solution comes to my mind. 

Anonymous
Not applicable

Hey there, I am working on unpivioting the coumns. What is the next step from here? 

 

Anonymous
Not applicable

Ok I appreciate it. I am going to look into how I can group the those columns together for now. 

@Anonymous 
I was going through my old notifications and just noticed that I did not reply to you. I remember I read the message but apparently forgot to reply to you. Please accept my appology. Can you please sahre a sample file to work with and explain with examples the expected results. Thanks and have a great day!

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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