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 August 31st. Request your voucher.
Hi all,
I am hoping someone can help with this. I have a list of unique text values (Linked Permit column) and just want to replace this with a 1 so it can become a SUM and as a total on a card visual. For everything that is blank I will replace this with a 0 but I would like to know how I can replace all of these unique values as a number 1 please.
Many thanks
Jay
Solved! Go to Solution.
Hi @JayTG123
In Power Query add an conditional column and use IF is equal Blank then return 0, else 1
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
BTW, you don't need another column to calculate the sum of non-blank values.
An alternative would be to write a measure that counts the non-blank values.
CountNonblank = CALCULATE ( COUNT ( Table1[Linked Permit] ), Table1[Linked Permit] <> "" )
Hi @JayTG123
In Power Query add an conditional column and use IF is equal Blank then return 0, else 1
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
@aj1973 thank you so much!! You learn something every day!
Happy New Year to you !
Jay
lol indeed, never stop learning 🙂
Happy new year to you as well
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook