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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Concatenate Measure and Text

Hello,

 

Could you please answer the following:

I was trying to create a calculation showing SUM(Montant Facturable) and the Currency, and the reason why I'm using this method not the default Number Formatting is that Gaia is a Number and Montant is Currency; so when I select Montant, I would like to see 2 decimals and Euro currency, 

 

Thank you, 

 

mesure.PNG

dynamic title..PNG

4 ACCEPTED SOLUTIONS
Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

Not sure if I understand exactly what you are asking, however when you create a measure you will have control over the format by going to the Modeling tab and selecting the Format.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Euro.PNG

Euro1.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

amitchandak
Super User
Super User

You can use

format ( <your formaul>,"###.##") & "<Currency symbol>"
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

Anonymous
Not applicable

Reporting Period = IF(ISFILTERED(DATES[Reporting Period]),
CONCATENATE("Reporting Period: ",SELECTEDVALUE(DATES[Reporting Period])))

View solution in original post

You will need to define the formatting for both cases using IF clause, something like this:

 

CalculatedMeasure = IF(SELECTEDVALUE(Table1[FilterField]) == "Gaia", FORMAT(SUM(ARS211C[MONTANT FACTURABLE]), "Currency"), FORMAT(SUM(ARS211C[MONTANT FACTURABLE])), "General Number"))

 

More on formats:

https://docs.microsoft.com/en-us/dax/pre-defined-numeric-formats-for-the-format-function

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

You can use

format ( <your formaul>,"###.##") & "<Currency symbol>"
Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Reporting Period = IF(ISFILTERED(DATES[Reporting Period]),
CONCATENATE("Reporting Period: ",SELECTEDVALUE(DATES[Reporting Period])))

You will need to define the formatting for both cases using IF clause, something like this:

 

CalculatedMeasure = IF(SELECTEDVALUE(Table1[FilterField]) == "Gaia", FORMAT(SUM(ARS211C[MONTANT FACTURABLE]), "Currency"), FORMAT(SUM(ARS211C[MONTANT FACTURABLE])), "General Number"))

 

More on formats:

https://docs.microsoft.com/en-us/dax/pre-defined-numeric-formats-for-the-format-function

Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,

Not sure if I understand exactly what you are asking, however when you create a measure you will have control over the format by going to the Modeling tab and selecting the Format.
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Euro.PNG

Euro1.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.