To illustrate the question I have created some dummy data below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Product[/TD]
[TD]Sales Volume[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Shoes[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]France
[/TD]
[TD]Shoes[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Shoes[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Boots[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Boots[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Hat[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Hat[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
I want to create a measure that will return the number of products with a total sales volume of less than 20 (i.e. the result would be "2" from the above data, as "Boots" and "Hats" have sales volumes of 10 and 15 respectively.
Any help with creating the measure would be much appreciated. Thanks in advance!
Ben
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Product[/TD]
[TD]Sales Volume[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Shoes[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]France
[/TD]
[TD]Shoes[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Shoes[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Boots[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Boots[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Hat[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]France[/TD]
[TD]Hat[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
I want to create a measure that will return the number of products with a total sales volume of less than 20 (i.e. the result would be "2" from the above data, as "Boots" and "Hats" have sales volumes of 10 and 15 respectively.
Any help with creating the measure would be much appreciated. Thanks in advance!
Ben