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 the following query, its not working for "PRESSURE", However, if I create a separate query for the same its working.
I am not getting any error message either.
@Anonymous think it might be that swith function can not reach that step because previous conditions has got a True, or the combinations not be listed completely.
@Anonymous , Other one misplace of parenthesis at last every thing else seems fine.
Can you share a sample pbix after removing sensitive data.
SWITCH(TRUE(),AND([SAPACTDES-3]="VESSEL",[SAPACTDES-2]="EXT"),"EXT-VESSEL"
,AND([SAPACTDES-4]="VESSEL",[SAPACTDES-2]="EXT"),"EXT-VESSEL"
,AND([SAPACTDES-5]="VESSEL",[SAPACTDES-2]="EXT"),"EXT-VESSEL"
,AND([SAPACTDES-6]="VESSEL",[SAPACTDES-2]="EXT"),"EXT-VESSEL"
,AND([SAPACTDES-7]="VESSEL",[SAPACTDES-2]="EXT"),"EXT-VESSEL"
,AND([SAPACTDES-3]="SEPARATOR",[SAPACTDES-2]="EXT"),"EXT-SEPARATOR"
,AND([SAPACTDES-4]="SEPARATOR",[SAPACTDES-2]="EXT"),"EXT-SEPARATOR"
,AND([SAPACTDES-5]="SEPARATOR",[SAPACTDES-2]="EXT"),"EXT-SEPARATOR"
,AND([SAPACTDES-6]="SEPARATOR",[SAPACTDES-2]="EXT"),"EXT-SEPARATOR"
,AND([SAPACTDES-7]="SEPARATOR",[SAPACTDES-2]="EXT"),"EXT-SEPARATOR"
,AND([SAPACTDES-3]="PRESSURE",[SAPACTDES-2]="EXT"),"EXT-PRESSURE"
,AND([SAPACTDES-4]="PRESSURE",[SAPACTDES-2]="EXT"),"EXT-PRESSURE"
,AND([SAPACTDES-5]="PRESSURE",[SAPACTDES-2]="EXT"),"EXT-PRESSURE"
,AND([SAPACTDES-6]="PRESSURE",[SAPACTDES-2]="EXT"),"EXT-PRESSURE"
,AND([SAPACTDES-7]="PRESSURE",[SAPACTDES-2]="EXT"),"EXT-PRESSURE","OTHER EQUIPMENT")
The query was working fine, i had confused myself.
@Anonymous
I didn't get your question right, please explain clearly.
Your last line closing bracket before "OTHER EQUIPMENT" is not required.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |