Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
HI,
I need to to convert the below expression to power BI supported expression when I am going to add new column :
if(not isNULL(DOC_RECORD_KEY), DOC_RECORD_KEY,
if(not isNULL(MSG_RECORD_KEY), MSG_RECORD_KEY, GATEWAY_RECORD_KEY)
) as TRANSACTION_RECORD_KEY
Can anyone tell me the correct syntax for it?
Hi,
I am using the below code:
if ([DOC_RECORD_KEY] <> "NULL", [DOC_RECORD_KEY],
if([DOC_RECORD_KEY] <> "NULL", [DOC_RECORD_KEY], [GATEWAY_RECORD_KEY]
)
)
but getting 'Token RightParen Expected' error. So please correct me in this case.
Hi @Anonymous
You may refer to below DAX. If it is not your case, please share your data sample and expected output.
Column = IF ( Table[DOC_RECORD_KEY] <> BLANK (), Table[DOC_RECORD_KEY], Table[GATEWAY_RECORD_KEY] )
Regards,
Cherie
Hi,
I am using the below DAX expression:
TRANSACTION_RECORD_KEY = if([DOC_RECORD_KEY] <> BLANK(),[DOC_RECORD_KEY], if([MSG_RECORD_KEY] <> BLANK(), [MSG_RECORD_KEY], [GATEWAY_RECORD_KEY]))
but getting the below error:
Argument '3' in IF function is required.
Please correct the above syntax.
Hi @Anonymous
I've tested your DAX expression with my data. It seems nothing wrong with it. It's better you can share your data sample or show the error screenshot.
Column = IF([DOC_RECORD_KEY]<>BLANK(),[DOC_RECORD_KEY],IF([MSG_RECORD_KEY]<>BLANK(),[MSG_RECORD_KEY],[GATEWAY_RECORD_KEY]))
Regards,
Cherie
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |