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
TaufikMaggangka
Helper II
Helper II

Measure for Text in Direct Query Mode.

Hi All,,,

I need help with "Direct Query" mode.

Basically, I want to retrieve value from column into new value. I try with custom column but not working in the "direct query mode".

Here my sample column and the value, I name it:
"CovidSymtptomsScreen"

fever lossofsmell cough
cough fever
fever lossofsmell
headache cough


I hope the result if I create table visualization will be like this :
"CovidSymtptomsScreen"

Fever, Loss of smell, Cough
Cough, Fever
Fever, Loss of smell
Headache, Cough


Stress about this, I try a lot of different ways such as using text.combines, text.contains with if statement but doesnt work in directquery mode. Some one told me that it can be done with measure, but quite confusing since he didn't give me an example of measure and i am new with power bi.

Your prompt response will be appreciated.

Thank you,

5 REPLIES 5
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @TaufikMaggangka ,
Try using this DAX to substitute the space with comma:
Measure= SUBSTITUTE(Table[CovidSymtptomsScreen]," ", ",")


34.PNG

Hi @Tanushree_Kapse , i would like to try but cant found my name of my table. please image atatched

@TaufikMaggangka , you are writing the syntax wrong.
One equal to sign only!!

Hi @Tanushree_Kapse 
I have delete the = but still cannot find the table.

@TaufikMaggangka , instead of measure... create a new column and use the formula

 

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.

Top Solution Authors