Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
if (custoemr is in A table AND if the BU type is not "UT", "DT", "PT") or if customer number = 5150
then = 'In' else 'OUT'
INOUT=
IF (
OR (
AND (
NOT ISBLANK (
LOOKUPVALUE (
'ASP vw_A'[businessUnitName],
'ASP vw_A'[businessUnitNumber],
'ASP vw_B'[CustomerNumber]
)
),
NOT OR (
SELECTEDVALUE('ASP vw_A'[BU Type]) IN {"UT", "DT", "PT"}
)
),
'ASP vw_B'[CustomerNumber] = 5150
),
"IN",
"OUT"
)
Solved! Go to Solution.
Here's the corrected version of your code:
INOUT =
IF (
OR (
AND (
NOT ISBLANK (
LOOKUPVALUE (
'ASP vw_A'[businessUnitName],
'ASP vw_A'[businessUnitNumber],
'ASP vw_B'[CustomerNumber]
)
),
NOT OR (
SELECTEDVALUE('ASP vw_A'[BU Type]) IN {"UT", "DT", "PT"}
)
),
'ASP vw_B'[CustomerNumber] = 5150
),
"IN",
"OUT"
)
In this code, I've corrected the LOOKUPVALUE function to use the correct syntax. The first argument of LOOKUPVALUE is the column that contains the values you want to retrieve, and the second argument is the column used for matching. Make sure you replace 'ASP vw_A'[businessUnitName] with the actual column you want to retrieve values from and 'ASP vw_A'[businessUnitNumber] with the column used for matching.
If you're still facing issues, please provide more details or context about the tables and columns you're working with, and I'll do my best to assist you.
Here's the corrected version of your code:
INOUT =
IF (
OR (
AND (
NOT ISBLANK (
LOOKUPVALUE (
'ASP vw_A'[businessUnitName],
'ASP vw_A'[businessUnitNumber],
'ASP vw_B'[CustomerNumber]
)
),
NOT OR (
SELECTEDVALUE('ASP vw_A'[BU Type]) IN {"UT", "DT", "PT"}
)
),
'ASP vw_B'[CustomerNumber] = 5150
),
"IN",
"OUT"
)
In this code, I've corrected the LOOKUPVALUE function to use the correct syntax. The first argument of LOOKUPVALUE is the column that contains the values you want to retrieve, and the second argument is the column used for matching. Make sure you replace 'ASP vw_A'[businessUnitName] with the actual column you want to retrieve values from and 'ASP vw_A'[businessUnitNumber] with the column used for matching.
If you're still facing issues, please provide more details or context about the tables and columns you're working with, and I'll do my best to assist you.
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |