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
blytonpereira
Helper II
Helper II

Concatanate Measure and Text string in DAX

I have a measure which calculates the percentage such as:

X=a/b

I then format the result as a % with 0 decimal places (so a whole number percentage) I then created a measure (Text string and result of previous measure)

Y = "MAPE " & [X]

 

However the [Y] measure is causing the [X] result to appear as decimal places. I would prefer the result to be the string and a whole number percentage for the [X] Can someone please assist to create a measure that will provide this result ?

1 ACCEPTED SOLUTION

How about this:

 

Y = "MAPE " & FORMAT([X], "0%")

View solution in original post

3 REPLIES 3
themistoklis
Community Champion
Community Champion

@blytonpereira

 

Try the following formula using the INT function:

 

Y = "MAPE " & INT([X])

Thank you that does work in some cases however in my case the value I want to display as an integer is a percentage.

 

So for example 29 % is a 0.29.

 

If I do put INT (Mymeasure) the result will be 0 as it rounds down to 0

 

So I need the value to display as 29% rather than 0 or rather than 0.2994543 etc.

 

Thank you

How about this:

 

Y = "MAPE " & FORMAT([X], "0%")

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.