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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
PaulPP
New Member

If function with text (string)

Hello Everyone,

 

thank you for your help. 

 

I would like to write a IF function, the result should be text1 or text2. 

Both text have more option for example

 

text 1 is "a"

text 1 is "b"

text 1 is "c" 

 

text 2 is "d"

text 2 is "e"

 

For example: IF[Measure1] = "yes", then text1, otherwise text2 

The problem, text1 has "a","b","c". I would like have "a","b" and "c" in the table

 

Result should be in a matrix

 

PaulPP_0-1677857924071.png

 

Does somebody has any idea? Thank you. 

 

Sorry for my English

 

Best Regards

 

Paul

1 REPLY 1
yyzheng12
Helper I
Helper I

You can consider using a table constructor to create a table and use calculatetable DAX to visualize it.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.