Numeric Distribution in DAX

martijnvanderveldt

New Member
Joined
Sep 10, 2014
Messages
13
Hi Guys!

I was trying to calculate Numeric Distribution in Power BI Desktop (Uses DAX). Numeric distribution means that you look at the number of outlets you are present in (e.g. Heineken is being sold in 800 out of 1000 bars = 80%). It should be able to do this with just 3, columns: Outlets, brands, and volume (Only filled when present). Here the outlets are presented multiple times per brand:

Outlets Brand Volume
Outlet 4: Heineken 20
Outlet 4: Budweiser -
Outlet 4: Desperados 10
Outlet 5...

To calculate the number of outlets per brand I simply used: Count(Volume) which in this case returns 800 when throwing it in a table

The problem now however is that I can't seem to Count/SUM all outlets (1000) for the end of my formula since there are 800 "selected" outlets in the table under Heineken.

Thus the following formula doesn't work:

Count(Volume)/DistinctCount(Outlets)


Anyone any idea? Please note that Power BI Desktop doesn't allow a subtotal or Sum function separately which you can later use at the end of the formula.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,226,729
Messages
6,192,696
Members
453,747
Latest member
tylerhyatt04

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