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 all,
I have a table such as :
And I'd need a column that filters with specific criteria :
- If it's A or B, lenght has to be min 5
- If it's D, lenght has to be min 4
- If it's C, lenght has to be min 2
I tried a multiple IF, such as :
It doesnt retrieve error, but it doesn't filter correctly. Any ideas?
Thanks in advance!
Ana
Solved! Go to Solution.
@Anonymous Please try this as a "New Column"
Filter = IF(Test280MultiIf[Class] IN {"A","B"} && Test280MultiIf[Length]>=5,1,IF(Test280MultiIf[Class]="C" && Test280MultiIf[Length]>=2,1,IF(Test280MultiIf[Class]="D" && Test280MultiIf[Length]>=4,1,0)))
Proud to be a PBI Community Champion
@Anonymous Could you please confirm the below logic. That means, all the classes should be minimum of length 5. Is that you are looking for ?
- If it's A or B, lenght has to be min 5
- If it's D, lenght has to be min 5
- If it's C, lenght has to be min 5
Proud to be a PBI Community Champion
sorry, no, my mistake. A & B <5 ; C < 2 and D < 4, i corrected the main question
@Anonymous Please try this as a "New Column"
Filter = IF(Test280MultiIf[Class] IN {"A","B"} && Test280MultiIf[Length]>=5,1,IF(Test280MultiIf[Class]="C" && Test280MultiIf[Length]>=2,1,IF(Test280MultiIf[Class]="D" && Test280MultiIf[Length]>=4,1,0)))
Proud to be a PBI Community Champion
thanks a lot, it works nicely!
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |