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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

¿Total general cuando se utiliza IsInScope?

Tengo la siguiente medida:

VAR VParent =
FILTRO (
SUMMARIZE ( Ingresos, 'Cliente'[Padre], 'Costo'[Negocio] ),
[Medida1] > 0
)

VAR MaxParent = MAXX ( VParent, [Medida1] )

VAR SubT = CALCULATE ( [Medida1], VParent )

VAR VLead =
FILTRO (
SUMMARIZE ( Ingresos, 'Leads'[No], 'Cost'[Business] ),
[Medida1] > 0
)

VAR Max_Leads = MAXX ( VLead, [Medida1] )

VAR SubTotal_Leads = CALCULATE ( [Medida1], VLead )

devolución
CAMBIAR (
VERDADERO (),
ISINSCOPE ( 'Cliente'[Cliente] ), DIVIDE ( SubT, MaxParent ),
ISINSCOPE ( 'Cliente'[Padre] ), DIVIDIR ( SubT, MaxParent ),
ISINSCOPE ( 'Leads'[Emp] ), DIVIDE ( SubTotal_Leads, Max_Leads ),
EN BLANCO ()
)

Si selecciono la visualización de "tabla" en Power BI, el total general aparece BLANK()...

La medida tal como está funciona bien, pero quería agregar un total general cada vez que lo muesgo en una tabla.

No estoy seguro de si es posible mostrar un total general (como promedio) de lo que se muestra. Mi objetivo es mostrar un GrandTotal, de lo que se muestra ... Es decir; si 'Cliente'[Cliente] está en el alcance, mi objetivo es mostrar el total general para eso.

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@ovonel , Prueba

CAMBIAR (
VERDADERO (),
ISINSCOPE ( 'Cliente'[Cliente] ), DIVIDE ( SubT, MaxParent ),
ISINSCOPE ( 'Cliente'[Padre] ), DIVIDIR ( SubT, MaxParent ),
ISINSCOPE ( 'Leads'[Emp] ), DIVIDE ( SubTotal_Leads, Max_Leads ),

not(ISINSCOPE ( 'Cliente'[Cliente] ) || ISINSCOPE ( 'Cliente'[Padre] ) || ISINSCOPE ( 'Leads'[emp] )) , DIVIDE ( SubT, MaxParent )
EN BLANCO ()
)


o


AverageX(summarize(Hecho, 'Cliente'[Cliente],'Cliente'[Padre] ,'Leads'[Emp], "_1" ,
CAMBIAR (
VERDADERO (),
ISINSCOPE ( 'Cliente'[Cliente] ), DIVIDE ( SubT, MaxParent ),
ISINSCOPE ( 'Cliente'[Padre] ), DIVIDIR ( SubT, MaxParent ),
ISINSCOPE ( 'Leads'[Emp] ), DIVIDE ( SubTotal_Leads, Max_Leads ),
EN BLANCO ()
)),[_1])

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

No @ovonel ,

Revisé @amitchandak fórmula y estuve de acuerdo con él. Puedes intentarlo.


Si el problema aún no se ha resuelto, proporcione información detallada sobre el error y hágamelo saber inmediatamente. Esperamos su respuesta.

Saludos
henrio

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

Syndicate_Admin
Administrator
Administrator

@ovonel , Prueba

CAMBIAR (
VERDADERO (),
ISINSCOPE ( 'Cliente'[Cliente] ), DIVIDE ( SubT, MaxParent ),
ISINSCOPE ( 'Cliente'[Padre] ), DIVIDIR ( SubT, MaxParent ),
ISINSCOPE ( 'Leads'[Emp] ), DIVIDE ( SubTotal_Leads, Max_Leads ),

not(ISINSCOPE ( 'Cliente'[Cliente] ) || ISINSCOPE ( 'Cliente'[Padre] ) || ISINSCOPE ( 'Leads'[emp] )) , DIVIDE ( SubT, MaxParent )
EN BLANCO ()
)


o


AverageX(summarize(Hecho, 'Cliente'[Cliente],'Cliente'[Padre] ,'Leads'[Emp], "_1" ,
CAMBIAR (
VERDADERO (),
ISINSCOPE ( 'Cliente'[Cliente] ), DIVIDE ( SubT, MaxParent ),
ISINSCOPE ( 'Cliente'[Padre] ), DIVIDIR ( SubT, MaxParent ),
ISINSCOPE ( 'Leads'[Emp] ), DIVIDE ( SubTotal_Leads, Max_Leads ),
EN BLANCO ()
)),[_1])

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.