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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I'm trying to create a new column using a text column. If the text column is empty, I want the new column to have "0", if it is not empty, I want it to have a "1". Seems simple but I just can't come up with a working formula.
Solved! Go to Solution.
@BAChizek , in power query
if [Column] = null or [column] ="" then 0 else 1
In DAX, new column
if(isblank([column] || [column]= "", 0,1)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 6 | |
| 6 |