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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors