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
tarun912
Helper IV
Helper IV

Uso del mensaje N/A en lugar de BLANK

Hola a todos

Estoy haciendo un informe, que contiene 4-5 segmentaciones, quiero preguntar una cosa que cada vez que hago selecciones de la segmentación de datos entonces los resultados correspondientes aparecen en mi tablero, pero a veces cuando los datos relevantes no están presentes, muestra BLANK, pero quiero N / A en lugar de BLANK, cómo seguir adelante con esto ?

¿Puede alguien por favor ayudar?
¡Gracias!

7 REPLIES 7
Anonymous
Not applicable

Cree una nueva medida basada en la que tiene:

[Nuevos Meas] - COALESCE( [Viejos Meas], "N/A")

Mejor
D
V-pazhen-msft
Community Support
Community Support

@tarun912

Puede usar la característica replace value en el Editor de consultas, que es la forma más sencilla.

replacevalue.JPG

Paul Zheng
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

BA_Pete
Super User
Super User

Hola @tarun912

Prueba algo como:

IF(
ISBLANK([Medida]),
"N/A",
[Medida]
)


Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Hola

Intenté manipular mi medida, pero eso está mostrando en blanco.

Mi medida es:

CALCULAR (
COUNTROWS ( MVIEW_PRICING_CHALLENGES ),
FILTRO ( MVIEW_PRICING_CHALLENGES,
MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP]. [Fecha]
> ( SELECTEDVALUE ( 'DATE TABLE'[Fecha] ) - W_NO_DAYS )
&& MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP]. [Fecha]
< ( SELECTEDVALUE ( 'DATE TABLE'[Fecha] )
)
)

¿Puede decirme por favor cómo manipular esta medida?
o, ¿tenemos crear una medida más para esto aparte de mi original ?
¡Gracias!

Hola @tarun912

Creo que esto debería cubrir su requisito:

yourMeasure =
VAR calc =
//Put all your original measure code into a variable here
CALCULATE (
COUNTROWS ( MVIEW_PRICING_CHALLENGES ),
FILTER ( MVIEW_PRICING_CHALLENGES,
MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP].[Date]
>= ( SELECTEDVALUE ( 'DATE TABLE'[Date] ) - W_NO_DAYS )
&& MVIEW_PRICING_CHALLENGES[CREATEDTIMESTAMP].[Date]
< ( SELECTEDVALUE ( 'DATE TABLE'[Date] ) )
)
)
RETURN
//Reference variable within IF statement
IF(
ISBLANK(calc),
"N/A",
calc
)

También puede usar el mismo método de variable, pero cambiar el código después de RETURN a lo siguiente para usar @darlove método de tidier' :

COALESCE(calc, "N/A")



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




¡Gracias!

He eliminado ese error y está funcionando correctamente ahora.

No, todavía esto no funciona
error: la sintaxis de VAR es incorrecta.

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.