Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I have one DAX Function called TOPN and it works perfectly, show me the TOP5
But when i use the Date Filter the sales column works, the Rank Works, but the TOPN returns Blank.
My Measures RANK and TOPN
Ranking Ticket Medio Procedimentos =
IF([Ticket Medio Fat. Proced],
RANKX(
ALL(D_TIPO_PROCEDIMENTO[nome]),
[Ticket Medio Fat. Proced]
)
)
TOP N Ticket Médio Procedimentos =
var topNSelecionado = SELECTEDVALUE('TopN'[N],5)
return
CALCULATE(
[Ticket Medio Fat. Proced],
FILTER(
VALUES(D_TIPO_PROCEDIMENTO[nome]),
[Ranking Ticket Medio Procedimentos] <= topNSelecionado
)
)
Solved! Go to Solution.
None of the transactions for the selected day are in the Top 5.