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 experts,
I am new to PBI and of course need some help with queries. When I run the two quries below. I get the error message in the subject line. When I run the first query or the second query ALONE, I don't get the error message. I will greatly appreciate your help.
#"Added Conditional Column1" = Table.AddColumn(#"Added Column", "Instructor_FN", each if Text.Length(ACADEMIC_HISTORY[INST_FIRST_NAME])=0 then ACADEMIC_HISTORY[FACULTY_FIRST_NAME] else ACADEMIC_HISTORY[INST_FIRST_NAME]),
#"Added Conditional Column2" = Table.AddColumn(#"Added Conditional Column1", "Instructor_LN", each if Text.Length(ACADEMIC_HISTORY[INST_LAST_NAME])=0 then ACADEMIC_HISTORY[FACULTY_LAST_NAME] else ACADEMIC_HISTORY[INST_LAST_NAME])
Solved! Go to Solution.
here is an alternative to your code, just replace these line from your code and let me know if it works:
#"Added Conditional Column1" = Table.AddColumn(#"Added Column", "Instructor_FN", each if Text.Length([INST_FIRST_NAME]) = 0 then [FACULTY_FIRST_NAME] else [INST_FIRST_NAME]),
#"Added Conditional Column2" = Table.AddColumn(#"Added Conditional Column1", "Instructor_LN", each if Text.Length([INST_LAST_NAME]) = 0 then [FACULTY_LAST_NAME] else [INST_LAST_NAME])
Blog: AnalyticPulse
Youtube Channel: AnalyticPulse
here is an alternative to your code, just replace these line from your code and let me know if it works:
#"Added Conditional Column1" = Table.AddColumn(#"Added Column", "Instructor_FN", each if Text.Length([INST_FIRST_NAME]) = 0 then [FACULTY_FIRST_NAME] else [INST_FIRST_NAME]),
#"Added Conditional Column2" = Table.AddColumn(#"Added Conditional Column1", "Instructor_LN", each if Text.Length([INST_LAST_NAME]) = 0 then [FACULTY_LAST_NAME] else [INST_LAST_NAME])
Blog: AnalyticPulse
Youtube Channel: AnalyticPulse
It worked !! Thank you so much !! I've struggled with this issue for a while and was going crazy. ha!
Would you mind explaining why this was happening? Just because specifying the table name in two different queries?
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 |
---|---|
13 | |
13 | |
10 | |
8 | |
7 |