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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply

seleccionar el valor de un filtro de columna con otra columna

NOMBRE DE LA TABLA
srl no srl ref. Desc
11a
21b
31c
44a
54b
64c

El valor del filtro de la búsqueda srlno en srl ref.(if srl á srl ref. y desc á "b" y luego srl no in new col1),(if srl á srl ref. y desc á "c" entonces srl no en el nuevo col2)

NOMBRE DE LA TABLA
srl no srl ref. Desc nuevo col1 nuevo col2
11a23
44a56
1 ACCEPTED SOLUTION
v-xuding-msft
Community Support
Community Support

Hola @sohailstsindia ,

Por favor, intente esto:

b =
CALCULATE (
    MAX ( 'Table'[srl no] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "b" )
)
c =
CALCULATE (
    MAX ( 'Table'[srl no] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "c" )
)

v-xuding-msft_0-1601436079359.png

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hola @sohailstsindia ,

Por favor, intente esto:

b =
CALCULATE (
    MAX ( 'Table'[srl no] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "b" )
)
c =
CALCULATE (
    MAX ( 'Table'[srl no] ),
    FILTER ( ALLEXCEPT ( 'Table', 'Table'[srl ref.] ), 'Table'[desc] = "c" )
)

v-xuding-msft_0-1601436079359.png

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Gracias @v-xuding-msft

manikumar34
Solution Sage
Solution Sage

@sohailstsindia , Crear relación srl no y utilizar la función RELACIONADA con IF .

https://www.sqlbi.com/daxpuzzle/related-in-a-query/

saludos

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




gracias @Manikumar por favor puede escribir DAX.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors