Calculated table using DAX...

Matty

Well-known Member
Joined
Feb 17, 2007
Messages
3,717
Hi Team,

I'm looking for some help creating a calculated table using DAX to work out what Products make up the top N % of my portfolio based on Sales.

My raw data table is as follows:

ProductSales
A10
B15
D25
E15
F5
E10
D30
C25
A40
B5

<tbody>
</tbody>

Running through the logical steps in my head, the next task would be to summarise Sales by Product:

ProductSales
A50
B20
C25
D55
E25
F5

<tbody>
</tbody>

This table would then need to be sorted by Sales:

ProductSales
D55
A50
C25
E25
B20
F5

<tbody>
</tbody>

Next would be to work out the % of Total each Product represents:

ProductSales% of Total
D5531%
A5028%
C2514%
E2514%
B2011%
F53%

<tbody>
</tbody>

Finally, we would calculate the % of Running Total:

ProductSales% of Total% of Total Running
D5531%31%
A5028%58%
C2514%72%
E2514%86%
B2011%97%
F53%100%

<tbody>
</tbody>

Ultimately, all I am after in terms of my DAX table is the following:

ProductSales
D31%
A58%
C72%
E86%
B97%
F100%

<tbody>
</tbody>

Hope the above makes sense and someone can set me on my way.

Thanks,

Matty
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,215,416
Messages
6,124,774
Members
449,187
Latest member
hermansoa

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