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

Concatenar dos medidas

Hola expertos

Tener problemas al intentar concatenar dos medidas, por lo que el resultado final es Valor (%).

La primera medida es la parte valor (o)

VAR Mth1 ?

SELECTEDVALUE ( SelMth[Month] )

VAR yr ?

SELECTEDVALUE ( Year_Grp[Año] )

VAR Fcst1 ?

SELECTEDVALUE ( SelMth4[Actual] )

Acct de VAR (VAR Acct)

SELECTEDVALUE ( Grp_Sumry_Rep[AccountGroup] )

VAR MthVal ?

CALCULAR (

SUM ( Profitability_Consolidation[Beneficio]),

Profitability_Consolidation[Período] á Fcst1,Profitability_Consolidation[Año] - yr, Profitability_Consolidation[AccountGroup] - Acct, Profitability_Consolidation[Producto] - "Total"

)

devolución

MthVal

La segunda medida es la (%) Parte

Porcentaje: DIVIDE(SUM(Profitability_Consolidation[Profit]),CALCULATE(SUM(Profitability_Consolidation[Profit]),ALLSELECTED(Profitability_Consolidation)))

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hay @Cloud11

Antes de utilizar la función CONCATENATE() para unir valores, deberá dar formato a las medidas al tipo de texto.

Y si tiene más de dos valores que deben unirse, podría usar "&".

Measure = CONCATENATE(FORMAT([Measure1],"##£ "),FORMAT([Measure2],"percent"))

El resultado se mostraría como se muestra a continuación.

4.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hay @Cloud11

Antes de utilizar la función CONCATENATE() para unir valores, deberá dar formato a las medidas al tipo de texto.

Y si tiene más de dos valores que deben unirse, podría usar "&".

Measure = CONCATENATE(FORMAT([Measure1],"##£ "),FORMAT([Measure2],"percent"))

El resultado se mostraría como se muestra a continuación.

4.PNG

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
MFelix
Super User
Super User

No @Cloud11 ,

En teoría, si haces algo similar a esto, hará el trabajo:

Concatenation = Format([First Measure], "### £") & FORMAT([Second Measure], "##%")

Debe hacer ambas medidas en el formato de texto y concatenarlas que es el uso de la fórmula FORMAT, sin embargo, dependiendo del contexto el resultado puede no ser esperado.


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



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.