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
Hi everyone, 
I'm having troubles with a RANKX. I'm trying to rank the countries based on the HappinnessRank variable. However, when I apply the filter, the rankx is not working properly and instead of showing "1" for the first item, its showing a higher value.
The DAX formula i'm using is the following 
You are filtering with Date , hence Date should be within ALLSELECTED but you have Country
> https://hevodata.com/learn/dax-allselected/#ex1
Regards,
Ritesh
Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !! PL 300 Certification Series
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.