Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello Expert.
I try to do a logic but it resulted to syntax error. What I want is having a multiple columns to filter. So for example how to express this scenario.
If column A, B, C, D, E, F, G, H, I,J, K, L, M & N is false then "With Changes" if true " No Changes"
How can I express this formula without having an error and will work? Please advise.
Thank you
Solved! Go to Solution.
@Anonymous
Hope you need a DAX solution?. Add the following Column to your table and modify the column names as required
Column =
VAR T = {[A],[B],[C],[D]} RETURN
SWITCH( TRUE() ,
CONTAINS(T,[Value],FALSE()), "With Changes",
CONTAINS(T,[Value],TRUE()), "No Changes",
"Unknown"
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
hi @Anonymous - If the condition needs to check if ALL columns to be FALSE for the derived column to have the value "With Changes" then you can implement a logic as seen below.
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
Proud to be a Super User!
@Anonymous
Hope you need a DAX solution?. Add the following Column to your table and modify the column names as required
Column =
VAR T = {[A],[B],[C],[D]} RETURN
SWITCH( TRUE() ,
CONTAINS(T,[Value],FALSE()), "With Changes",
CONTAINS(T,[Value],TRUE()), "No Changes",
"Unknown"
)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you All for taking time to answer my questions and I've got the right formula from @Fowmy Thank you for the help!
You all stay safe and thanks again
Hi @Anonymous
Can you share an example of the data and what you want it to look like?
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |