Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[sense] how to get another table field's value to calculate what if?

I have 2 tables,

table1 is event and store count

table 2 item, $ sales per store, forecast

My request is, when end user picks an event, the corresponding store count could be passed to table 2 for forecast calculation,

the function is forecast= $ sales per store * store count.

How to do it? qvf and raw excel files attached. thanks.

2 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

In your data model, the two tables are not associated, which is not ideal... Preferably, you'd like to associate your events with the participating stores, etc...

Within your structure, I'd suggest to use the ONLY() function for the store count. This technique, however, requires that one and only one event (or, technically speaking one single store count) is selected in order to enable the calculation. See attached file.

cheers,

Oleg Troyansky

QlikView Your Business: An expert guide to Business Discovery with QlikView and Qlik Sense

Anonymous
Not applicable
Author

Thanks. it works. but I found another problem.

The store count in my sample was static, which is fine with your solution.

But in real world, the value is calculated value. I attached a further sample.

In this updated sample, I got error saying bad field name.

Can you help me out again? thanks again.