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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Split the result

Hi,

Is it possible that I can split the result for the result of "G" and "M" in the Serology test? 

 

akhmad_danial_0-1635320391213.png

 

this is my table

akhmad_danial_1-1635320554699.png

 

and my data 

akhmad_danial_2-1635320613574.png

 

akhmad_danial_3-1635320654684.png

Any guidance to solve this?

I've tried to split the column in the result for G and M but only G and M are shown, but for the result of PCR and Antigen is blank.

 

Thank you in advance

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous Try something like this:

result measure=

IF([Type]="Serology",

IF([detail]="G",LEFT([result],SEARCH(",".[result])-1),RIGHT([result],LEN([result])-SEARCH(",".[result]))

), [result]

)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

What's your expected result? Whether the below screenshot is what you want? Please provide your expected result with special example or screenshot. Thank you.

yingyinr_1-1635490913106.png

You can also refer to the following blogs split result column:

How to Split Columns in Power BI

How to Split Cells and Text in Excel with Power Query

Split a column of text (Power Query)

Best Regards

Anonymous
Not applicable

@Anonymous Try something like this:

result measure=

IF([Type]="Serology",

IF([detail]="G",LEFT([result],SEARCH(",".[result])-1),RIGHT([result],LEN([result])-SEARCH(",".[result]))

), [result]

)

Anonymous
Not applicable

Great, Thanks @Anonymous .

The results are in accordance with what I expected, like this:

akhmad_danial_0-1637055200266.png

It's just that takes a long time to process if the data is big. Another alternative, I split column result in table screening result into 2 columns, to find "G" and "M" value first, after that create a measure.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.