Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have 2 tables brought into one table by concatenation.
My requirement is to only see products that are present in first table(sales table) in my front end straight table. So that means i don't want to see below products in straight table.
K |
M |
Script-->
Sales:
LOAD * INLINE [
Product, Sales
A, 120
A, 10
B, 140
B, 15
C, 100
];
Concatenate(Sales)
//Budget:
LOAD * INLINE [
Product, Budget
A, 150
K, 180
M, 50
];
output-
Please help.
Thanks for your reply.
My original tables have multiple columns and doing left join will effect the rows in sales table. So i want control this only in front end.
Your problem is the concatenate statment because if you ase ussing this your data isn't related. Attached the resultant table (Data with concatenate).
If you use the outer join function instead your data looks like (Data with outer join)
and then you can use this expresion to sum only the budget that are sales > 0:
sum({<Budget={"=sum(Sales)>0"}>} Budget)
The final table looks like
Regards.
Dan.
Thanks for detailed explanation and your time. I understand you are suggesting me to do outer join. i am trying to avoid joins at the moment as there is lot going based on the final table in the live application.
I prefer doing it in front end. Is it possible to use Aggr() ? So our requirement is to show only those budget numbers that has sales.
You can try an approach with some set analysis, check the attached for further details