Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
trying to use Set Analysis to limit the number of rows returned from concat based on a field in the row, I've tried this many different ways and can't seem to get the correct results:
Note: OrderPcs is an Input Field that defaults to 0 but then could be changed by the user before the below code is ran.
ex.1
concat({<OrderPcs={0}>} distinct [Master Product Description]& '; ' &[Product Width]& '; ' &[Product Length]& '; ' &OrderPcs& '; ' &OrderWgt& '; ' &OrderNotes& ' | ', chr(13)&chr(10) , fieldindex('[Master Product Description]', [Master Product Description]))
William,
I was playing around with a similiar situation you describe and I had to do something like the following:
=concat( {$<Month={"=round(sum(BudgetInput))=1"}>} distinct Month,chr(10)&chr(13),fieldindex('Month',Month))
BudgetInput is an inputfield and even if I changed the some values to 1 in a chart, the chart was showing me and I was changing a sum(BudgetInput), in this case by Month, and there was really no value 1 in the field BudgetInput. I also had to put round because even if a put 1, QlikView changes the numbers that make up the sum and the number is never exactly 1, but rather 1.0000000372.
Regards.
William,
I was playing around with a similiar situation you describe and I had to do something like the following:
=concat( {$<Month={"=round(sum(BudgetInput))=1"}>} distinct Month,chr(10)&chr(13),fieldindex('Month',Month))
BudgetInput is an inputfield and even if I changed the some values to 1 in a chart, the chart was showing me and I was changing a sum(BudgetInput), in this case by Month, and there was really no value 1 in the field BudgetInput. I also had to put round because even if a put 1, QlikView changes the numbers that make up the sum and the number is never exactly 1, but rather 1.0000000372.
Regards.
Thanks Karl,
I played around with what you gave me and came out with this:
concat({$<[Master Product Description]={"round(sum(OrderPcs))>0"}>} distinct [Master Product Description], chr(13)&char(10), fieldindex('<[Master Product Description]', <[Master Product Description]))
its not pretty but it works, so thx for the help!!! ![]()