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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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