The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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)
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
5 |