Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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 |
---|---|
15 | |
13 | |
12 | |
10 | |
10 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
10 |