Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hola, @llealsantos
Puede hacerlo utilizando esta función MAXX para iterar a través de los ciclos y encontrar la clasificación máxima. Para ello, modifique la métrica de las siguientes maneras:
Measure 2 =
VAR Periods = ALL('Calendar'[Year Period])
VAR Total = [Laundry]
VAR Ranking = RANKX(Periods, [Laundry], Total, DESC)
// Calculate the maximum rank
VAR MaxRank =
MAXX(
Periods,
RANKX(Periods, [Laundry], [Laundry], DESC)
)
// Determine the result based on the rank
VAR Result =
IF(
Total = 0,
0,
IF(
Ranking <= 5,
1,
IF(
Ranking <= (MaxRank - 2), // Top 3 values
2,
0
)
)
)
RETURN
Result
Saludos
hackcrr
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.