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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
akhmad_danial
Helper I
Helper I

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

@akhmad_danial 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
v-yiruan-msft
Community Support
Community Support

Hi @akhmad_danial ,

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@akhmad_danial Try something like this:

result measure=

IF([Type]="Serology",

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

), [result]

)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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