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

Ayuda de DAX - Filtrar tabla con múltiples opciones de selección

Comunidad

Estoy buscando ayuda para filtrar una tabla mirando los valores a través de unas pocas columnas. A continuación se muestra la tabla con la que estoy trabajando.

passtable.PNG

Estoy tratando de filtrar la tabla con una medida de tal forma que si [Pass.Yaw] 100, a continuación, encontrar la fila donde [Atd.Yaw] y [Data.Yaw] coinciden, o si [Pass.Splitter] 100, a continuación, encontrar la fila donde [Atd.Splitter] y [Data.Splitter] coinciden.

passtable.PNG

Haga clic aquí para ver el archivo PBIX de ejemplo.

¡Gracias por cualquier posible solución!

1 ACCEPTED SOLUTION

Hola @wayers ,

Intente editar su medida "CL3" como el siguiente DAX:

CL3 =
AVERAGEX (
    ALL ( TestData ),
    TestData[SlopeCLxx^2] * TestData[Data.V^2] + TestData[SlopeCLxx] * TestData[Data.V] + TestData[Slope.CLIncpt]
)

O podría crear una nueva medida:

Measure =
AVERAGEX (
    ALL ( TestData ),
    [CL3]
)

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@wayers

Puede sutilizar así en el filtro

filter(Table, (Tabla[Pass.Yaw]-100 && Table[Atd.Yaw] ? Tabla[Data.Yaw] ) (Tabla[Pass.Splitter]-100 && Table[Atd.Splitter] ?Table[Data.Splitter] ))

Como

Measure á calculate(sum(table[value]),filter(Table, (Tabla[Pass.Yaw]-100 && Table[Atd.Yaw] ? (Tabla[Pass.Splitter]-100 && Table[Atd.Splitter] ?Table[Data.Splitter] )))

Anonymous
Not applicable

@amitchandak

¡Gracias por la respuesta!

Esta solución identifica la fila correcta de datos que estaba buscando cuando se muestran todos los atributos de tabla. Pero al revisar una tabla reducida (tabla de una sola línea) los datos de salida no son como cabría esperar.

TestDemo2.JPG

El DAX forCL3 es

CL3 = 
AVERAGE(TestData[SlopeCLxx^2])*AVERAGE(TestData[Data.V^2])+
AVERAGE(TestData[SlopeCLxx])*AVERAGE(TestData[Data.V])+
AVERAGE(TestData[Slope.CLIncpt])

Parece que estoy obteniendo el promedio de todos los datos de [Atd.AtdID] y no de la única fila que quiero. ¿Alguna idea de cómo resolver esto? ¿Necesito aplicar la información del filtro en la medida CL3?

Hola @wayers ,

Intente editar su medida "CL3" como el siguiente DAX:

CL3 =
AVERAGEX (
    ALL ( TestData ),
    TestData[SlopeCLxx^2] * TestData[Data.V^2] + TestData[SlopeCLxx] * TestData[Data.V] + TestData[Slope.CLIncpt]
)

O podría crear una nueva medida:

Measure =
AVERAGEX (
    ALL ( TestData ),
    [CL3]
)

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

@v-eachen-msft , @amitchandak

¡Gracias por la ayuda de DAX!

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.