Hola
Tengo una tabla en la que tengo karting con una fecha de inicio de alquiler y una fecha de finalización de alquiler.
Me gustaría medir el "stock" de karts alquilados o los materiales disponibles, que es todo lo contrario
Para un día determinado, si es entre las dos fechas, el kart se alquila, de lo contrario, no.
He intentado un total en ejecución, pero suma los datos
m_Total cumulé de Nombre de Lien Facturation::N° Contrat Comp dans Date =
CALCULATE(
COUNTA('Contrats Location'[Lien Facturation::N° Contrat Comp]),
FILTER(
ALLSELECTED('Date'[Date]),
ISONORAFTER('Date'[Date], MAX('Date'[Date]), DESC)
)
)
Pero no quiero un total acumulado, porque cuando finaliza el alquiler, entonces mi kart está disponible.
Mi pregunta es
Puede medir eso con dax
¿O tengo que crear una tabla con power Query que suma por día y los karts alquilados para mostrar en un gráfico?
gracias
Espero ser claro.
Solved! Go to Solution.
Hola @amitchandak
¡Perfecto, logro obtener la figura que estaba buscando gracias a la siguiente fórmula!
Current Employees = CALCULATE(COUNTx(FILTER(Employee,Employee[Start Date]<=max('Date'[Date]) && (ISBLANK(Employee[End Date]) || Employee[End Date]>max('Date'[Date]))),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None))
¡Ten un buen día!
Hola @amitchandak
¡Perfecto, logro obtener la figura que estaba buscando gracias a la siguiente fórmula!
Current Employees = CALCULATE(COUNTx(FILTER(Employee,Employee[Start Date]<=max('Date'[Date]) && (ISBLANK(Employee[End Date]) || Employee[End Date]>max('Date'[Date]))),(Employee[Employee Id ])),CROSSFILTER(Employee[Start Date],'Date'[Date],None))
¡Ten un buen día!
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.
Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!