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
Beginner at Power BI 🙂
Have this Issue -
Below is the query that have been using it to categorize the product type as GFT and LT (So if Product Code contains GRF,GR,GF they are tagged as GFT and otherwise LT)
Existing working Query-
Solved! Go to Solution.
Try:
Category =
SWITCH (
TRUE (),
CONTAINSSTRINGEXACT ( myp[Product Code], "GRF" ), "GFT",
CONTAINSSTRINGEXACT ( myl[Session], "GR" ), "GFT",
CONTAINSSTRINGEXACT ( myp[Product Code], "-GF" ), "GFT",
CONTAINSSTRINGEXACT ( myp[Product Code], "TG" ), "GFT",
CONTAINSSTRINGEXACT ( myp[Product Code], "-TG" ), "GFT",
myp[Product Code] = "A54958", "GFT",
"LT"
)
Proud to be a Super User!
Paul on Linkedin.
Thanks Paul for your quick help
Try:
Category =
SWITCH (
TRUE (),
CONTAINSSTRINGEXACT ( myp[Product Code], "GRF" ), "GFT",
CONTAINSSTRINGEXACT ( myl[Session], "GR" ), "GFT",
CONTAINSSTRINGEXACT ( myp[Product Code], "-GF" ), "GFT",
CONTAINSSTRINGEXACT ( myp[Product Code], "TG" ), "GFT",
CONTAINSSTRINGEXACT ( myp[Product Code], "-TG" ), "GFT",
myp[Product Code] = "A54958", "GFT",
"LT"
)
Proud to be a Super User!
Paul on Linkedin.
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.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 31 | |
| 27 | |
| 24 |