Having an issue with using a rankx calculation with a card visual. Using the following DAX for customer group ranking.
Customer group ranking= RANKX(ALL(Sales[Sold-to Party Group]),[CY Total Sales],DESC,Skip)
The above formula is simple and when the interactions with the date field are disabled the following is the table result which shows the customer group’s rank over time with an overall rank.

Where I am having troubles is using this formula with a card. My intention is to show the overall rank in the card as a quick visual. But the grand total of the card is not matching the grand total in the table which has been verified as correct.

Any help solving this would be greatly appreciated.