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

DAX to concatenate text values in a column

Hello,

 

I am seeking assistance for an appropriate measure to concatenate certain text values in a column to then = a single text value. This would be applicable to the listed items below from a single column. I am looking to acheive the following:

 

Site page, BMS Navigation Page, BMS BPAD = Web Page

Policy, Framework, Plan, Manual, Procedure, Instruction, Guide, Handbook = Documents

 

The remainder of the values in the column would remain as is.

 

Any assistance would be much apppreciated! 🙂

 

AMBP1973_0-1760586480266.png

 

1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

Create a calculated column:

 

 

Category =
SWITCH(
TRUE(),
'Table'[Column] IN {"Site page", "BMS Navigation Page", "BMS BPAD"}, "Web Page",
'Table'[Column] IN {"Policy", "Framework", "Plan", "Manual", "Procedure", "Instruction", "Guide", "Handbook"}, "Documents",
'Table'[Column]
)

 

Replace 'Table'[Column] with your actual table and column names.

 

 

If this answer helped, please click Kudos or mark as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande

View solution in original post

5 REPLIES 5
Kedar_Pande
Super User
Super User

Create a calculated column:

 

 

Category =
SWITCH(
TRUE(),
'Table'[Column] IN {"Site page", "BMS Navigation Page", "BMS BPAD"}, "Web Page",
'Table'[Column] IN {"Policy", "Framework", "Plan", "Manual", "Procedure", "Instruction", "Guide", "Handbook"}, "Documents",
'Table'[Column]
)

 

Replace 'Table'[Column] with your actual table and column names.

 

 

If this answer helped, please click Kudos or mark as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande

@Kedar_Pande @v-dineshya thankyou for your response and solution, works perfectly! 

v-dineshya
Community Support
Community Support

Hi @AMBP1973 ,

Thank you for reaching out to the Microsoft Community Forum.

 

Hi @Jihwan_Kim , Thank you for your prompt response.

 

Hi @AMBP1973 ,  Could you please try the proposed solution shared by  @Jihwan_Kim ? Let us know if you’re still facing the same issue we’ll be happy to assist you further.

 

Regards.

Dinesh

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

I tried to create calculated column.

 

Jihwan_Kim_0-1760588076682.png

 

 

CC_slicer = 
SWITCH (
    TRUE (),
    slicer[slicer] IN { "site page", "bms bpad", "mbs navigation page" }, "web page",
    slicer[slicer]
        IN { "policy", "framework", "plan", "manual", "process", "prodecure", "guide" }, "documents",
    slicer[slicer]
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

@Jihwan_Kim thankyou for providing this, unfortunately my organisation doesn't allow the PBIR

Helpful resources

Announcements
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.