Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Is there a way that I can color code the values based on an "If Text contains" logic. Values in Matrix are in a text format.
For example, FLLFP would show up green in both columns and MIALL yellow in both columns, etc.
Solved! Go to Solution.
Hi @jeamps01 ,
See the below sample:
base data:
Color measure:
COLOR = VAR TEST1=LEFT(MAX('Table'[value]),4) RETURN IF(TEST1="FLLF","Green",IF(TEST1="MALL","Yellow",BLANK()))
Then:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @jeamps01 ,
See the below sample:
base data:
Color measure:
COLOR = VAR TEST1=LEFT(MAX('Table'[value]),4) RETURN IF(TEST1="FLLF","Green",IF(TEST1="MALL","Yellow",BLANK()))
Then:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
mycolour =
STRING(True(),
CONTAINSSTRING(tablename.fieldname, "FLLFP"), "green",
CONTAINSSTRING(tablename.fieldname, "MIALL"), "yellow",
BLANK()
)
Then in the matrix right click on Values > Conditional formating > Backgground colour >
Format style = Field value
Based on = mycolour
Thank you Speedramps. This doesn't work for some reason. STRING isn't a valid formula. I have SWITCH or SELECTEDMEASURESTRING as possible options.
Also my field name "Name + RGI" does not show up as a possible selection option for either of these formulas. I only see that Measures show up as possible options.
Sorry, for the autotext correction mistake.
Yes SWITCH should have been STRING !
😀
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |