Forum Discussion
Condition based duplicate value set Flag
Anonymous to add more
&& -> Is used for and condition
|| -> is used for or condition
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Hi,
Thanks for reply.
I Column value won't same always . We can't use switch condition.
Logic is , On below record. I want display only lost two row data. Because It's assigned "X" and Don't want display which is no assigned X.
| 6543 | July 30,2020 | USMA01 | OLI BR | 1 | July 30,2020 | |
| 3456 | July 30,2020 | USMA01 | OLI BR | 1 | July 30,2020 | |
| 7888 | July 30,2020 | USMA01 | OLI BR | 1 | X | July 30,2020 |
| 2134 | July 30,2020 | USMA01 | OLI BR | 1 | X | July 30,2020 |
One more logic, on below record. There no truck assigned. But For each combination I need consider one row as orginal record.
| 5490 | July 30,2020 | USTN01 | LAV | 2 | July 30,2020 | |
| 5103 | July 30,2020 | USTN01 | LAV | 2 | July 30,2020 | |
| 4309 | July 30,2020 | USTN01 | LAKE | 1 | July 30,2020 |
- parry2k6 years ago
Super User
Anonymous not sure I followed it completely, what you mean column name will not be the same?
- Anonymous6 years agoNot applicable
SWITCH ( TRUE(), Table[Column1] = "ABC" && Table[Column2] = "XYZ" && Table[Column3] = 123, "Value 1", Table[Column1] = "ABC" || ( Table[Column2] = "XYZ" && Table[Column3] = 123 ), "Value 2", Table[Column1] = "ABC" || Table[Column2] = "XYZ" || Table[Column3] = 123, "Value3", "Catch all" )In Column1 ="ABC" & Column2"XYZ" & Column3=123 , You want me to give Route & City & SEQ number value right ? ..
- v-easonf-msft6 years ago
Community Support
Hi, Anonymous
I'm a little confused about these two sets :
6543 July 30,2020 USMA01 OLI BR 1 July 30,2020 0 3456 July 30,2020 USMA01 OLI BR 1 July 30,2020 05490 July 30,2020 USTN01 LAV 2 July 30,2020 1 5103 July 30,2020 USTN01 LAV 2 July 30,2020 0Why the result of the first set is 0 and 0, and the result of the second set is 1 and 0?
Can you share more details?Best Regards,
Community Support Team _ Eason