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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Adding a "%" to a one cell of a numeric column

Hi!

 

I have a numeric measure like this:

 

=CALCULATE([FIN_Import];PBI_REP_FIN[Tipo de valor_Clave]="10")

 

and for several rows I want to add a "%" to the right.

I've tried CONCATENATE (Like following, but obviously I try to put a text into a number cell), FORMAT() or CONVERT(), but it doesn't work:

 

FIN_R = IF(SEARCH("% ";SELECTEDVALUE(M_Account_PL_Str[PL5]);1;0);CONCATENATE(CALCULATE([FIN_Import];PBI_REP_FIN[Tipo de valor_Clave]="10");"%");CALCULATE([FIN_Import];PBI_REP_FIN[Tipo de valor_Clave]="10"))
 
Is it possible?
Thanks in adavance!
2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

You may modify your measure like below:

FIN_R =
IF (
    SEARCH ( "% "; SELECTEDVALUE ( M_Account_PL_Str[PL5] ); 1; 0 );
    CONCATENATE (
        CALCULATE (
            [FIN_Import];
            FILTER ( ALL ( PBI_REP_FIN ); PBI_REP_FIN[Tipo de valor_Clave] = "10" )
        );
        "%"
    );
    CALCULATE (
        [FIN_Import];
        FILTER ( ALL ( PBI_REP_FIN ); PBI_REP_FIN[Tipo de valor_Clave] = "10" )
    )
)

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hello!

 

Firstly, thank you for your response. But it does not work. It returns the same error:

 

"You can not convert the XX value from text to Numeric/date"

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.