Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a filter that includes the line 'Loneliness All Data'[VARIABLE] == "Parliamentary Constituency". I also want this filter to include "LGD" i.e, if the variable column is equal to Parliamentary Constituency or LGD. How do I add in the LGD? I'm sure this must be easy but I'm a newbie and can't figure it out at all!
Here is my code:
Solved! Go to Solution.
Hi @andytmcc,
You can use it like this && 'Loneliness All Data'[VARIABLE] IN {"Parliamentary Constituency", "LGD"}
@ReneMoawad How would I put this same filter requirement FILTER('Loneliness All Data'[VARIABLE] IN {"Parliamentary Constituency", "LGD"} into this code:
Thanks!
Sorry, i didn't mean how would I use the || in that. I meant how would I put this filter FILTER('Loneliness All Data'[VARIABLE] IN {"Parliamentary Constituency", "LGD"} into this code below:
Thank you so much!
Hi @ReneMoawad ,
That's fantastic - thank you so much! I had been trying to use OR but couldn't figure it out. First time coming across IN for me!
Also instead of OR you can use double vertical bar ||
Hi @andytmcc,
You can use it like this && 'Loneliness All Data'[VARIABLE] IN {"Parliamentary Constituency", "LGD"}
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |