Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

Calculating measure based on min(measure) for dimension

$
0
0

Hi all,

 

I'm struggling with a calculation within Web Intelligence. My use case is that I want to display what is the volume of customer sales but only for the customer with the lowest average price. Customer is not part of the table (or bar chart) as I want to only display this at Country level. Let me give you an example:

 

CountryCustomerLowest PriceSales Volume
NetherlandsABC_NL80
NetherlandsXYZ_NL7.501000
BelgiumBE_12312.505000
BelgiumBE_4561010000

 

I have two countries and the Lowest Price is calculated using the following formula: =Min([Price] ForEach ([Customer])). The Sales Volume is calulated is a similar way. This result in both the min lowest price and min sales volume.

 

CountryLowest PriceSales Volume
Netherlands7.500
Belgium105000

 

However I need to display the sales volume for the customer that has the min lowest price. This would result in the following table:

 

CountryLowest PriceSales Volume
Netherlands7.501000
Belgium1010000

 

Which formula can I use to display the correct value in the Sales Volume column? The difficulty is the fact that I want to filter the sales volume column on that customer that has the min lowest price.

 

Would be great if somebody can help me with this one! Looking forward to your solutions!

 

With kind regards,

 

Martijn van Foeken


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>