Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have a table looking like below screenshot.
I am not that familiar with Power BI DAX syntax, May I get some help to achieve below outcome:
A new colume to have:
if column 1 equals to "I"
and if Table3.Column6 not null
then use Table3.Column6 value to replace Column6 value
else remain Column6 value
Solved! Go to Solution.
Hi @MichelleQLi ,
For simple conditional columns you can use the Add Conditional Column feature in the Query Editor. By the way, this editor uses M as the language. DAX is used once you've loaded your data into the model.
https://turbofuture.com/computers/A-Comparison-Between-M-Language-and-DAX-in-Power-BI
Hi @MichelleQLi ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Column = IF('Table'[Column1]=="I" && 'Table'[Table3.Column6]<>BLANK(),'Table'[Table3.Column6],'Table'[Column6])
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MichelleQLi ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Column = IF('Table'[Column1]=="I" && 'Table'[Table3.Column6]<>BLANK(),'Table'[Table3.Column6],'Table'[Column6])
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MichelleQLi ,
For simple conditional columns you can use the Add Conditional Column feature in the Query Editor. By the way, this editor uses M as the language. DAX is used once you've loaded your data into the model.
https://turbofuture.com/computers/A-Comparison-Between-M-Language-and-DAX-in-Power-BI
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 48 | |
| 35 | |
| 31 | |
| 27 |