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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
yo_peralta23
Frequent Visitor

Create a string from other string in Tabular Model

Hi,

 

I´m trying to do a string based in other string.

Original String: "Replacement" with values "Yes" and "No"

Secundary String: "Replacement/New" with values "Repl." (If Replacement string is "Yes") and "New" (If Replacement string is "No")

But in a Tabular Model, the "New Column" option appears deactivated. Im trying to do a New Measure like this:

 

Replacement/New = SWITCH(TRUE();SUMX(DW_DS_STAFFING_CURRENT;DW_DS_STAFFING_CURRENT[replacement])="Yes";"Replacement";"New")

 

(I use the SUMX because is the only way I found to Power BI recognize the "Replacement" variable.)

But the result is a Measure, and I cant use to put as column in a table, for instance!

Thats my problem.

Thanks in advance

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@yo_peralta23 ,

 

Are you using live connection mode to connect to the tabular mode? If you are, to create new calculate column, you need to convert live connection mode to import mode.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@yo_peralta23 ,

 

Are you using live connection mode to connect to the tabular mode? If you are, to create new calculate column, you need to convert live connection mode to import mode.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.