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 have a column with text, postive and negative numbers. How can I split these values in PowerBI?
Can you please help.
Solved! Go to Solution.
Hi @treesa2010
Try these codes to add custom columns with DAX:
negative =
Var _V = IFERROR(CONVERT('Table'[Values],INTEGER),BLANK())
return
if(_V<0,'Table'[Values],blank())
Postive =
Var _V = IFERROR(CONVERT('Table'[Values],INTEGER),BLANK())
return
if(_V>0,'Table'[Values],blank())
Text =
Var _V = IFERROR(CONVERT('Table'[Values],INTEGER),BLANK())
return
if(ISBLANK(_V),'Table'[Values],blank())
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @treesa2010
Try these codes to add custom columns with DAX:
negative =
Var _V = IFERROR(CONVERT('Table'[Values],INTEGER),BLANK())
return
if(_V<0,'Table'[Values],blank())
Postive =
Var _V = IFERROR(CONVERT('Table'[Values],INTEGER),BLANK())
return
if(_V>0,'Table'[Values],blank())
Text =
Var _V = IFERROR(CONVERT('Table'[Values],INTEGER),BLANK())
return
if(ISBLANK(_V),'Table'[Values],blank())
output:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
182 | |
81 | |
64 | |
46 | |
38 |