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.
Hi,
I am trying to create a filter table with the below expression; however, I can't seem to use the highlighted || or element with the && and elements.
When I remove it, it returns a much smaller subset, when I leave it in it breaks the other filters.
Is ths a syntax issue of some kind?
2_Leads_Awareness = CALCULATETABLE('2_Leads', FILTER('2_Leads', '2_Leads'[Lead Status] <> "Disqualified" && '2_Leads'[Source Campaign Buyer's Journey] = "Awareness" && '2_Leads'[Lead Type] = "MQL" || '2_Leads'[Lead Type] = "Non-MQL"))
Thanks,
Donal
Solved! Go to Solution.
Hi @DonalMc
Try this:
2_Leads_Awareness = CALCULATETABLE ( '2_Leads', FILTER ( '2_Leads', '2_Leads'[Lead Status] <> "Disqualified" && '2_Leads'[Source Campaign Buyer's Journey] = "Awareness" && '2_Leads'[Lead Type] IN { "MQL","Non-MQL"} ) )
Regards
Victor
Lima Peru
Hi @DonalMc
Try this:
2_Leads_Awareness = CALCULATETABLE ( '2_Leads', FILTER ( '2_Leads', '2_Leads'[Lead Status] <> "Disqualified" && '2_Leads'[Source Campaign Buyer's Journey] = "Awareness" && '2_Leads'[Lead Type] IN { "MQL","Non-MQL"} ) )
Regards
Victor
Lima Peru
Lima Peru - Thank You!
I actually haven't used && and || at the same time so I'm not sure, but have you tried using brackets to better define your logic?
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 |
---|---|
112 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |