on 06-09-2021 9:44 AM
Hello everyone, I have noticed that setting "measure" filters in tables is extremely error prone.
The data is basically consumed via a BW Live connection. Now we have a requirement to exchange measures in a table by selecting a field from a dropdown. I noticed that measure filters using table.getDataSource.setDimensionfilter([a,b,c,...]) are partly not set.
Often only 2 of the 5 selected measures are filtered. If I add all 5 measures to the table in the design time, it works without any problems but as soon as I try to set them via the scripting functions - the filter won't apply in the table.
Can someone tell me the cause ? The problem is extremely annoying, because we now have to use about 6 tables instead of one, simply for the reason that the filter function for the table does not work properly.
Best regards
Rather than writing Alias.MeasureDimension as the auto complete suggests, you have to write "@MesureDimension"
Example:
table.getDataSource().setDimensionFilter("@MeasureDimension","Mesure1");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is perfectly fine to use Alias.MeasureDimension to address the measure dimension in this command.
torben.henke : could you check the filters after setting them via getDimensionFilters
Are there values available for these measures (booked vs. unbooked...)
regards,
Simon
Hi torben.henke,
your coding seems to be correct.
just to mention, you don't really need to removeDimensionfilter in this case.
Just put in the setDimensionFilter would be enough.
Maybe one thing, but you probably have already added.
Make sure that Measures is already added into the table in your designtime.
PS. did you build the measure array on your own, or did you use the combi keyboard:
ctrl + space and select the members through "open member selector".
Hope this helps you a little bit further.
Cheers,
Chia-Yu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.