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
Syndicate_Admin
Administrator
Administrator

Filtrar fecha específica hasta la actual por país

Hola Comunidad,

Buenos días. Me gustaría buscar ayuda sobre cómo puedo filtrar una fecha específica hasta la última fecha por país. Tengo estas columnas: País y Fecha de origen. Necesito filtrar, por ejemplo, si país es Australia Necesito filtrar desde el 1 de octubre en adelante, luego si el país es India, Corea, SG, Vietnam, 1 de marzo en adelante, luego si otros países 1 de junio en adelante.

katerinepr_0-1656399803442.png

He buscado posibles respuestas pero no las encuentro. ¡TIA!

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@katerinepr ,

Su sintaxis no es del todo exacta, debe agregar una fórmula similar a esta:

= Table.SelectRows(#"Changed Type", each if  [Country] = "Australia" then [Date Originated] >= #date(2021,10,1) else if List.Contains(  {"Korea", "India", "Singapore" , "Vietanm" } ,  [Country]) then [Date Originated] >= #date(2022,3,1) else  ([Date Originated] >= #date(2022,6,1)))

Puede ver en la tabla inferior que desea obtener los valores en verde:

MFelix_0-1656603363917.png

Cuando aplicamos la fórmula anterior obtienes el resultado que necesitas:

MFelix_1-1656603388874.png

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.