Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I created a new column in PQ that concatnates two values: Date and Sales
heres the code:
Date.ToText([Date]) & " - "& Number.ToText([Sales])
the problem is the sales doesnt have a thousands separator.
is there a way to add a thousands separator to this code?
thank you!!
Solved! Go to Solution.
Hi,
use the following M-Code:
Date.ToText([Date]) & "-" & Number.ToText([Sales],"#,##0.00"))
Regards FrankAT
Hi,
use the following M-Code:
Date.ToText([Date]) & "-" & Number.ToText([Sales],"#,##0.00"))
Regards FrankAT
perfect thank you much
Hi @Anonymous ,
it's easier with DAX
Column = FORMAT('Table'[Date], "mm/dd/yyyy") & " - " & FORMAT('Table'[Sales],"0,000.00")
Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
@Anonymous
Why do want to achieve that in M query instead in the model section?
If it helps, mark it as a solution
Kudos are nice too
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.