Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I've got the problem, that users would like to have values of dimensions in a set analysis expression, so that they can get a table like this:
Is there an opportunity to have an expression like this for the column "Sales NewCustomer":
Sum ({$<SalesDate={'>=NewCustomerFrom <=NewCustomerTill'} >} Sales)
Thanks!
Peggy
This syntax should work:
sum({<Date={">=$(From) <=$(To)"}>} Value)
Of course there may be format issues - hard to test without the sample data.
I think this should be quoted:
=Sum( {$<SalesDate={">='$(NewCustomerFrom)' <='$(NewCustomerTill)' "}>} Sales)
- Ralf
Thanks Ralf,
good idea, but in my example qvw it doesn't work...
Regards
Peggy
May be it doesn't work with QV 9 Version?
Hi,
Yes, I have found it will evaluate to blank values for the dates in the heading. I guess because there are multiple rows with different values in for the from and to dates it will not be able to show you. This is just the heading though, as long as you get the correct values it should be ok.
What do the values in your rows look like?
Regards,
Chris
Hi Chris,
I have posted the example...
Can you have a look at it?
Thanks
This works on Version 10:
=Sum( if(SalesDate>=NewCustomerFrom AND SalesDate<=NewCustomerTill, Sales))
- Ralf
Hallo Ralf,
danke! Das ist es!
Mal sehen ob ich das in meine komplexe Formel einbauen kann!
Viele Grüße
Peggy
Hi,
I was actully just about to suggest that (honest), you're too quick for me Ralf!
Glad it got sorted in the end though.
Regards,
Chris