Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi All
I have created a report in desktop and I want to add a column (Column B) to show if the column next to it (Column A) contains text or not and return a yes/no response. I tried isblank and a conditional column, but I can't get the right result.
Thanks in advance
Solved! Go to Solution.
@jondarcy
You posted this question under Power Query, so I provided a PQ solution. It seems you need to add a column to your table using DAX, Go to you table, and add a new column
Add this code:
Check Blank = IF( OR( ISBLANK([Column A]) , [Column A]="") , "Yes" , "No" )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@jondarcy
Try
= if [Column A]=null or [Column A]="" then "Yes" else "No"
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank you, I tried that and still can't get it to work. I'm clicking Modeling>New Measure then:
1. Column B=
2.= if [Column A]=null or [Column A]="" then "Yes" else "No"
@jondarcy
You posted this question under Power Query, so I provided a PQ solution. It seems you need to add a column to your table using DAX, Go to you table, and add a new column
Add this code:
Check Blank = IF( OR( ISBLANK([Column A]) , [Column A]="") , "Yes" , "No" )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Brilliant, thank you
Hi @jondarcy
Please can you be more specific and let us know how your data looks like and the desired outcome. You are welcome to attach screenshots
Looking forward