HELP_POWERPIVOT DAX RANKX Function

_Google

New Member
Joined
Feb 6, 2013
Messages
40
Hi

I need some help for issue with RANKX function with DAX. (I tried learn it from net, but when i populate in my data table, it does not work.

- My data source : I have only one source table in the model.
- I need Rank of Product in one column and Rank of Product with Material in another column.

Function are Rank Total Profit by Product SUM:=RANKX(ALL(fUnits[Product]),CALCULATE(SUM(fUnits[Profit]))) Rank Total Profit by Product within Manuf:=IF(HASONEVALUE(fUnits[Product]),RANKX(ALLEXCEPT(fUnits,fUnits[Product]),CALCULATE(SUM(fUnits[Profit]))))



Report view
ManufacturerProductTotal ProfitRank Total Profit by Product SUM#Rank Total Profit by Product within Manuf
Bower Booms3 MTA$142,960.1811
Bower BoomsAussie Quad$131,252.8321
Channel CraftKangaroo$135,467.6911
Channel CraftOmega$125,677.4021
Channel CraftV Rang$82,626.5331
Colorado BoomerangsAspen$288,120.8111
Colorado BoomerangsCrested Beaut$225,621.6421
Colorado BoomerangsYanaki$164,658.4131
Gel BoomerangsBellen$273,704.0721
Gel BoomerangsQuad$495,972.3811
Gel BoomerangsSunshine$194,931.7731
Manu RangsManu Distance$208,751.2111
Manu RangsManu MTA$203,058.3521
Turning PointDarnell Fast Catch$361,857.4511
Turning PointDarnell V$187,139.2721
Turning PointTry Fly$82,962.2031
Grand Total$3,304,762.191

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

Data Table Source : This is only sample hence total any different from report view
DateProductUnitsProfitManufacturer
01/09/2017Sunshine29235.52Gel Boomerangs
28/02/2017Yanaki758.68Colorado Boomerangs
27/10/2017Darnell Fast Catch232.19Turning Point
27/09/2017Try Fly316.32Turning Point
21/07/2017Aussie Quad6128.45Bower Booms
06/08/2017Yanaki325.15Colorado Boomerangs
08/04/2017Bellen218.46Gel Boomerangs
27/05/2017Yanaki216.77Colorado Boomerangs
17/09/2017Quad12290.07Gel Boomerangs
28/11/2017V Rang27104.77Channel Craft
05/02/2017Manu Distance172.91Manu Rangs
23/08/2017Crested Beaut34361.11Colorado Boomerangs
03/07/2017Darnell V313.26Turning Point
10/08/2017Sunshine216.24Gel Boomerangs
11/06/2017Try Fly316.32Turning Point
05/07/2017Aussie Quad364.22Bower Booms
06/09/2017Darnell V43190.12Turning Point
04/01/2017Bellen327.69Gel Boomerangs
18/05/2017Sunshine756.85Gel Boomerangs

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,214,944
Messages
6,122,384
Members
449,080
Latest member
Armadillos

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top