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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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