Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Mis datos de origen tienen una tabla con los usuarios y cada venta que hacen se registra como una fila.
Mi objetivo es encontrar la última fecha en la que cada usuario realizó una venta y luego clasificar esas fechas en consecuencia con la última siendo 1.
Ejemplo de tabla
La fórmula que estoy usando para encontrar la fecha máxima está funcionando correctamente
No @vendersonalias0 ,
Puede crear una medida como se indica a continuación:
Last Sale =
RANKX (
ALLSELECTED ( 'salestable' ),
CALCULATE ( MAX ( 'salestable'[Date] ) ),
,
DESC,
DENSE
)
Saludos
@vendersonalias0 tiene sentido, supongo que usó ALLEXCEPT ( Tabla, Tabla[Usuario]), ¿correcto?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Gracias por la ayuda chicos, lo suficientemente divertido cuando estaba creando un conjunto de datos ficticio que pasó a utilizar ALLEXCEPT en la fórmula MAX DATE, entonces ALLSELECTED en la última medida de fecha comenzó a funcionar...
@vendersonalias0 hay muchas maneras de lograrlo. Recomendaría poner datos de muestra en pbix y compartir a través de una unidad / google unidad y le conseguirá la solución.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@vendersonalias0, francamente hablando, la complejidad de RANKX() está mucho más allá de las expectativas de uno, especialmente cuando se incluye otra medida en ella; transición de contexto se producen dos veces en un escenario de este tipo.
A menos que pegue algunos datos ficticios o un archivo pbix, es difícil crear una medida correcta que se ajuste a su escenario.
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |