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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
GlynMThomas
Resolver I
Resolver I

Split a row based on label contents

Hi,

 

I have a data source of incidents that I've loaded into power bi from jira, One of the columns is a label column, this dictates what type of work the incident was about (report, account query, letter, etc). Sometimes however the label includes 2 values split by a semicolon (an example of this would be report;account query). I'm trying to build a pie chart to show how many tickets we've had under each type of work label, and where the label contains 2 items of work it should be included in the count of both those work items even though it's only one row.

 

Is there a way to do this in power bi using a measure?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@GlynMThomas , if possible then you should use split by a delimiter in Power query and split into rows

 

Split Column Power Query: https://youtu.be/FyO9Vmhcfag

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @GlynMThomas ,

 

Agree with @amitchandak .You could firstly split column by "," to rows:

Eyelyn9_0-1652238366772.png

Then right-click the column to remove all spaces. In addition, I add a Index column 

Eyelyn9_2-1652238573904.png

Output:

Eyelyn9_4-1652238846616.png

 

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

amitchandak
Super User
Super User

@GlynMThomas , if possible then you should use split by a delimiter in Power query and split into rows

 

Split Column Power Query: https://youtu.be/FyO9Vmhcfag

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.