Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Iwin
Partner - Creator
Partner - Creator

Calculate measure value based on range of another measure.

Hi,

I have the below scenario where:

I want to calculate value of sales value derived based on range of MPE Volume measure value:

eg : if range of MPE Volume value is -5 to 5 

I want to calculate value of Sales value derived only for those MPE Volume values between -5 to 5 .

I tried using set analysis as below but it is giving error:

sum({<((sum([1_Forecast Quantity ZU Unit])-sum([Sales Qty ZU CHK]))*100)/sum([Sales Qty ZU CHK])={">=-15<=20"}>}
aggr($(vSalesValueDerived),[Country key TEXT],Material,[Forecast Accuracy Period],[Profit Center]$(vRadio_Button))))

Iwin_0-1645247043104.png

 

Also tried calculating it using if condition as below:

if(MPE_Volume>-15 and MPE_volume <20,

sum(Sales_derived)) but it is always giving the total value instead of value between the range.

 

Thanks.

@sunny_talwar 

Labels (1)
0 Replies