The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |