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

Creación de jerarquía y rellenar el valor en consecuencia

Hola expertos,

Estoy enfrentando este problema durante un par de días. Trato de crear como abajo. He creado el encabezado hirerachy is Score(my case Sales Pairs)

sub encabezado es ACT,FST,%AF(mi caso EST,xxx,xxx). Quiero crear una medida compare con el encabezado hirerachy y subencabezado y rellenar el valor en consecuencia.

creat pbi.JPG

Medidas ?
VAR __Value1 á MAX('Custom Hierarchy'[Value1])
VAR __Value2 á MAX('Custom Hierarchy'[Value2])
devolución
SWITCH(
TRUE(),
ISINSCOPE('Custom Hierarchy'[Value2]) && __Value2 - "Pares de ventas",
ISINSCOPE('Custom Hierarchy'[Value2]) && __Value2 -"EST",
VAR _SALESEST - VALUE([EST])
devolución
SUMX (DIM_MDSTORE,(DIM_MDSTORE[FootwearTarget]-DIM_MDSTORE[NonFootwearTarget]) - _SALESEST),
ISINSCOPE('Custom Hierarchy'[Value2]) && __Value2 "EST",[EST],
ISINSCOPE('Custom Hierarchy'[Value1]) && __Value1 <> "Otros",
VAR _SALESEST - VALUE([EST])
devolución
SUMX (DIM_MDSTORE,(DIM_MDSTORE[FootwearTarget]-DIM_MDSTORE[NonFootwearTarget]) - _SALESEST),
ISINSCOPE('Custom Hierarchy'[Value1]) && __Value1 <> "Otros",
BLANK(),
BLANK()
)
)INSCOPE2.JPGINSCOPE1.JPG
1 REPLY 1
amitchandak
Super User
Super User

@PSan1979, hay mucho problema con la sintaxis

como el primer extremo de condición aquí

ISINSCOPE('Custom Hierarchy'[Value2]) && __Value2 - "Pares de ventas",

No volver para esto usted tiene otra condición.

Consulte cómo utilizar :https://www.youtube.com/watch?v=gelJWktlR80

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.

Top Solution Authors