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
Hi all, I have this measure, but I wanna separate by commas the thousends in the amounts, how could I do that here in dax w/measures?
Regards
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
Total Demurrage =
VAR txt1 = "Total Demurrage = $"
VAR sum1 =
FORMAT ( SUM ( Elev[Demurrage(credits 1=$150)] ), "0,000" )
VAR txt2 = " Real Amount = $"
VAR sum2 =
FORMAT ( sum1 * 150, "0,000" )
RETURN
txt1 & sum1 & txt2 & sum2
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @Anonymous ,
Please try:
Total Demurrage =
VAR txt1 = "Total Demurrage = $"
VAR sum1 =
FORMAT ( SUM ( Elev[Demurrage(credits 1=$150)] ), "0,000" )
VAR txt2 = " Real Amount = $"
VAR sum2 =
FORMAT ( sum1 * 150, "0,000" )
RETURN
txt1 & sum1 & txt2 & sum2
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Thank you so much, you solved it so simple, I did not know that possibility with "FORMAT"
Regards
Use the FORMAT function instead: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings
Thank you so much, I do not why I couldn't use it in my measure
Regards
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.