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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.