Hi
I have a table โPurchaseโ that includes purchases of different SKU
In another Table A, Iโve created a virtual column โRelated Purchasesโ to list all purchases of specific SKUs using expression REF_ROWS(โPurchaseโ, โSKUโ) and also created another virtual column โPurchased Qtyโ using expression Sum([Related Purchases][Quantity])
This is giving an appropriate result as expected.
However, when Iโm using exact same logic and expression in another Table B, it is not giving any result. I tried creating another Table C but the same issue of no results.
Request if anyone can help.
Solved! Go to Solution.
Thanks @Kirk_Masden!
I could figure out the key related issue.
Hi @Neeraj_Malik! Welcome to the community!
I wonder if key issues could be causing your problem:
REF_ROWS(โOrder Detailsโ, โOrder IDโ) gives a list of rows from the Order Details table whose Order ID column value matches this rowโs key column value, where โthis rowโ is the row from which the REF_ROWS() expression is evaluated.
https://help.appsheet.com/en/articles/2357313-ref_rows
Do the tables you mentioned have corresponding keys? Are you familiar with the concept of a โkeyโ?
Hi @Kirk_Masden
Thanks for your response!
Yes, I understand very little around key concept. The keys in most of my tables are different based on the values that I want to have as unique in that respective table.
Guide me on what could be the key related issue. Will see if the same can be worked out.
Hi @Neeraj_Malik!
I think the best guidance about keys is in the โWhat is a key?โ article I cited above. You need to look in your table and see what is marked as the key column. If each table has a column marked as the key column that has the same contents, I think your problem will be resolved. Good luck!
Thanks @Kirk_Masden!
I could figure out the key related issue.
User | Count |
---|---|
16 | |
10 | |
10 | |
8 | |
3 |