Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Calculate Rank from Virtual Table

Hi, I have a virtual table (vTable) with columns PaymentId (unique key), BusinessUnitId and CompanyId. I'm trying to calculate volume ranking of companies by the following -

 

RANKX(ALL('Company'), CALCULATE(COUNTX(vTable, [PaymentId])),, DESC, Skip)

 

But it returns 1 for all companies. Is it because there is no relationship between the virtual table and Company table? What will be the workaround for this situation?

 

Thanks.

2 Replies