March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi there,
Having a following table
Code | Group | Color | Hue |
101 | PT-15 | Green | Blue |
102 | PT-14 | Yellow | Red |
103 | CC-11 | Dark | |
104 | BA-10 | Black |
I would like to add another column who works as follows:
Return values from column Color BUT if Group starts with PT return values from colum Hue for these rows.
Is it possible please
Solved! Go to Solution.
Thanks for your help, but it doesn't work.
I did find this working :
DAX Column = IF (CONTAINSSTRING('Table'[String], "TRA"), "TRA" ,BLANK())
try this:
Thumb for help, but yes I solve my problem after finding code . Still thanks for your post
DAX Column = IF (CONTAINSSTRING('Table'[String], "TRA"), "TRA" ,BLANK()).
Thanks for your help, but it doesn't work.
I did find this working :
DAX Column = IF (CONTAINSSTRING('Table'[String], "TRA"), "TRA" ,BLANK())
Hi @MasterSonic
Try below DAX
= If( Left(table[Group],2) = "PT",[Hue],[color])
If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
18 | |
16 | |
13 |