Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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.
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
105 | |
93 | |
83 | |
64 |