Join 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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I have three columns filled with 'yes/no' responses. I want to create a conditional column based on these three columns such that if there are three 'yes', I'll get an output 'this, this, and that'. Is this possible?
Solved! Go to Solution.
You can add a custom column with below code. You can add multiple "else if ... then ..." in the if condition statement for the other six outcomes.
Example:
if condition1 then outcome1
else if condition2 then outcome2
else if condition3 then outcome3
else if ... then ...
else ...
if {[Streaming TV],[Streaming Movies],[Streaming Music]} = {"No","No","No"} then "no streaming" else if {[Streaming TV],[Streaming Movies],[Streaming Music]} = {"Yes","Yes","Yes"} then "TV, Movies, Music" else ""
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Custom=Table.AddColumn(PreviousStepName,"test",each if {[Column1],[Column2],[Column3]} =List.Repeat({"yes"},3) then "this,this, and that" else null)
@JoshuaOlayori Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
I want to add a new column called 'streaming'', where if it is no across these 3 columns, output will be 'no streaming'. And if it is yes across the 3, output will be 'TV, Movies, Music'. There are 8 different outcomes: YNY, NYY, ETC.
You can add a custom column with below code. You can add multiple "else if ... then ..." in the if condition statement for the other six outcomes.
Example:
if condition1 then outcome1
else if condition2 then outcome2
else if condition3 then outcome3
else if ... then ...
else ...
if {[Streaming TV],[Streaming Movies],[Streaming Music]} = {"No","No","No"} then "no streaming" else if {[Streaming TV],[Streaming Movies],[Streaming Music]} = {"Yes","Yes","Yes"} then "TV, Movies, Music" else ""
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 16 | |
| 12 | |
| 10 | |
| 7 | |
| 6 |