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.
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.