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 have text type column1 which has some numberic values.I want to put commas to the values, just like the screenshot shown above..
I tried like below... but not done correctly...Plse help
test =
VAR right =RIGHT ( [column1], 3 )
VAR left =SUBSTITUTE ( [column1], right, "" )
RETURN
COMBINEVALUES ( ",", left, right)
Solved! Go to Solution.
Hi @Anonymous
you can use this measure:
Measure =
var _text=MIN('Table'[Column1])
var _len=LEN(MIN('Table'[Column1]))
return
SWITCH(TRUE(),
_len<=3,_text,
_len>3&&_len<=6,LEFT(_text,_len-3)&","&RIGHT(_text,3),
_len>6&&_len<=9,LEFT(_text,_len-6)&","&MID(_text,_len-5,3)&","&RIGHT(_text,3))
result
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
you can use this measure:
Measure =
var _text=MIN('Table'[Column1])
var _len=LEN(MIN('Table'[Column1]))
return
SWITCH(TRUE(),
_len<=3,_text,
_len>3&&_len<=6,LEFT(_text,_len-3)&","&RIGHT(_text,3),
_len>6&&_len<=9,LEFT(_text,_len-6)&","&MID(_text,_len-5,3)&","&RIGHT(_text,3))
result
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi ... Outlet code is the TEXT ... have created matrix table and put outlet code in the values .... how to separate the figures in the table with comma .... check the highlighted table values ... need comma after 3 digit
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 121 | |
| 96 | |
| 65 | |
| 46 |