Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello, I am looking for the DAX formula which allows to calculate the rank of an Id according to its decreasing Qty value by date: example in attachment ... either in a calculated column, or by a measure. Can you help me?
Solved! Go to Solution.
Try this:
Rank =
VAR __date =
SELECTEDVALUE ( 'Table'[Date] )
RETURN
IF (
HASONEVALUE ( 'Table'[id] ),
RANKX (
ALL ( 'Table'[Date], 'Table'[id] ),
CALCULATE ( SUM ( 'Table'[qty] ), 'Table'[Date] = __date )
)
)
Proud to be a Super User!
Try this:
Rank =
VAR __date =
SELECTEDVALUE ( 'Table'[Date] )
RETURN
IF (
HASONEVALUE ( 'Table'[id] ),
RANKX (
ALL ( 'Table'[Date], 'Table'[id] ),
CALCULATE ( SUM ( 'Table'[qty] ), 'Table'[Date] = __date )
)
)
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.