Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
So I am trying to use VAR in a filter and came across this issue:
Why this:
Solved! Go to Solution.
well that totally makes sense now.
if var has to be scalar then there is no way it would work.
thanks for having a look into it, that's what i needed.
Can you please share the Power bi file?
Based upon your post and my understanding, the variable _LEFT will be storing a number and what you are trying to perform in the 2nd measure after RETURN is that :
You are trying to filter the table ie. Filter( Table, _LEFT && [type]="Phone")
_LEFT is storing a number. So as per me it does not makes any sense in the filter part. If _LEFT is 0, it would be taking false and if it is 1 it would be taking 1. (This is my understanding)
I am not sure about the answer and I might be wrong.
well that totally makes sense now.
if var has to be scalar then there is no way it would work.
thanks for having a look into it, that's what i needed.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |