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

La mejor manera de eliminar % de cambio total de la tabla

Hola -

¿Cuál es la mejor manera de eliminar el % de cambio total de la tabla? Traté de usar HASONEVALUE() bt no parece estar funcionando.

Medida:

% Cambio : IF(NOT ISBLANK([-Cases]),DIVIDE([YoY Difference], [O Case LY]))

lilych_0-1596733678375.png

Gracias

7 REPLIES 7
v-eachen-msft
Community Support
Community Support

Hola @lilych ,

Pruebe la siguiente medida y compruebe si funciona.

% Change =
VAR a =
    IF ( NOT ( ISBLANK ( [# Cases] ) ), DIVIDE ( [YoY Difference], [# Case LY] ) )
RETURN
    IF ( ISINSCOPE ( 'Table'[Month] ), a, BLANK () )

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

Gracias @v-eachen-msft . Cuando intento esa medida, no devuelve datos - consulte %Change TEST a continuación.

lilych_0-1596820845364.png

Greg_Deckler
Super User
Super User

@lilych - ¿Así que has hecho HASONEVALUE en la columna de mes, por ejemplo?

Medida:

% De cambio ( % Change)
VAR __Value - IF(NOT ISBLANK([-Cases]),DIVIDE([YoY Difference], [- Case LY]))
devolución
IF(HASONEVALUE([Month]),__Value,BLANK())
También puede contar todas las filas que en la tabla COUNTROWS(ALL('Table')) almacenarla en una variable. A continuación, haga un COUNTROWS('Table'). Si coinciden, estás en la línea Total.

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Gracias @Greg_Deckler . Cuando utilicé hasONEFILTER, devuelve todos los espacios en blanco (consulte TEST % Change) que tiene la medida que ha descrito. No estoy seguro de por qué está sucediendo esto.

lilych_0-1596736720191.png

@lilych - HASONEVALUE, no HASONEFILTER. También podría probar ISINSCOPE


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Gracias @Greg_Deckler - Me refería a HASONEVALUE, no HASONEFILTER, y devolvió todos los espacios en blanco. He intentado ISINSCOPE no puede entender eso tampoco. Soy nuevo en DAX y seguiré tratando de averiguar cómo hacer que esto funcione.

Gracias por la ayuda

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.