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
N_R_000
Helper I
Helper I

Columna calculada - Obtener la fecha más temprana basada en el cliente y el producto

Hola

Necesito agregar una columna calculada a una tabla que actualmente tiene las primeras 4 columnas que se ven a continuación. Necesito agregar la columna fith (EarliestTrialDateForProductAndCustomer). Esta, como sugieren los nammes, es la primera fecha que existe para el combo Cliente/Producto.

Recibí un poco de ayuda para obtener la fecha más temprana 'por cliente' simplemente no puedo averiguar cómo agregar ProductID en ese DAX.

EarliestTrialDateForProductAndCustomer = MINX(FILTER(Table, Table[CustomerID]=EARLIER(Table[CustomerID])),Table[Date])

N_R_000_0-1599561155343.png

Gracias de antemano todos!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@N_R_000 , Probar como

EarliestTrialDateForProductAndCustomer á MINX(FILTER(Table, Table[CustomerID]-EARLIER(Table[CustomerID]) && Table[ProductID]-EARLIER(Table[ProductID])),Table[Date])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@N_R_000 , Probar como

EarliestTrialDateForProductAndCustomer á MINX(FILTER(Table, Table[CustomerID]-EARLIER(Table[CustomerID]) && Table[ProductID]-EARLIER(Table[ProductID])),Table[Date])

Leyenda absoluta. Gracias. ¡Aprendiendo todo el tiempo!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.