Link to home
Start Free TrialLog in
Avatar of mikes6058
mikes6058

asked on

RANK X - Rank products by revenues - Powerpivot (DAX solutions only)

Attached is a spreadsheet containing a sales transactions table. On the sales by part sheet you will see I have created a simple pivot table from a PowerPivot model. I would like to create a measure that will rank the part codes by revenue.

Can anyone help me with a measure and explain the basic logic behind it.

I am novice with DAX but would like to learn more so the logic helps.

Thanks
Mike
trans_B.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikes6058
mikes6058

ASKER

Afraid not Neeraj
Hi Mike,

Please create a measure with the following formula and see if that resolves your issue of ranking the Sales by the Part Code.

=RANKX(ALL(transactions[partcode]),[sales total])

Open in new window