DAX formula problem

Gordonik

Board Regular
Joined
Jan 30, 2014
Messages
127
Dear excel champions

My problem is to find the DAX formula decribing distribution ratio.
Distribution ratio should be calculated as: (based on data below)

Distribution ratio= avg(Number of Visits Where product is available in ALFA stores / Number of Visits where product should be available in ALFA stores , Number of Visits Where product is available in BETA stores / Number of Visits where product should be available in BETA stores) = avg(4/8,3/4) = 62.5%

The fact which complicate this calculation is ALFA stores visited more than once.

I tried everything and could not find the solution.
I hope someone manage to help me with this task :)

[TABLE="width: 500"]
<tbody>[TR]
[TD]
Table. 1
ALFAaaa02.12.2013
ALFAbbb02.12.2013
ALFAccc02.12.2013
ALFAddd02.12.2013
ALFAaaa15.12.2013
ALFAbbb15.12.2013
ALFAccc15.12.2013
ALFAddd15.12.2013
BETAaaa16.12.2013
BETAbbb16.12.2013
BETAccc16.12.2013
BETAddd16.12.2013

<tbody>
[TD="width: 81"][/TD]
[TD="width: 92"][/TD]
[TD="width: 198"][/TD]
[TD="width: 196"][/TD]

[TD="class: xl65, width: 64"]Client[/TD]
[TD="class: xl65, width: 81"]Product ID[/TD]
[TD="class: xl65, width: 92"]Visit date[/TD]
[TD="class: xl65, width: 198"]Number of Visits where product should be available[/TD]
[TD="class: xl65, width: 196"]Number of Visits Where product is available[/TD]

[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"]1[/TD]

</tbody>
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Anyone helps? What function should I use: calculate, average, averagex, summarize, filter, count, countx, earlier, sumx, discount, countrows?
I do not know which ones are appropriate and how to join them in a one formula/measure.

thx for any posts
 
Upvote 0

Forum statistics

Threads
1,223,980
Messages
6,175,764
Members
452,668
Latest member
mrider123

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