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.
Hi,
Is it possible that I can split the result for the result of "G" and "M" in the Serology test?
this is my table
and my data
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
Solved! Go to Solution.
@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]
)
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.
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
@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:
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |