Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Separate by commas in measure

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?

 

Total Demurrage =
VAR txt1 = "Total Demurrage = $"
VAR sum1 =  SUM(Elev[Demurrage(credits 1=$150)])
VAR txt2 = "   Real Amount = $"
VAR sum2 =  sum1 * 150

RETURN
txt1 & sum1 & txt2 & sum2

 

Regards

 

eduardosilvin3_0-1673899540877.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

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

Anonymous
Not applicable

Thank you so much, you solved it so simple, I did not know that possibility with "FORMAT"

Regards

vicky_
Super User
Super User

Anonymous
Not applicable

Thank you so much, I do not why I couldn't use it in my measure

Regards

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors