Hi Fernando
Fernando Ros wrote:
- CONTAINS is only supported for Attribute View
That's not exactly true.
You can use CONTAINS also on Analytic Views but it's required to enable full text search on the attributes columns first.
A query like
SELECT
"CATEGORY",
sum("MARGIN") AS "MARGIN",
sum("AMOUNT_SOLD") AS "AMOUNT_SOLD",
sum("QUANTITY_SOLD") AS "QUANTITY_SOLD"
FROM "_SYS_BIC"."i028297.demo/AN_SALES"
where contains (category ,'*shirt*')
GROUP BY
"CATEGORY"
will yield the expected result then (note how "shirt" appears in different forms) :
CATEGORY | MARGIN | AMOUNT_SOLD | QUANTITY_SOLD |
2 Pocket shirts | 378.570,30000000144 | 1.072.995,7 | 5.442 |
Shirts | 24.047,5 | 68.354 | 352 |
T-Shirts | 5.120.879,299999978 | 11.972.779,40000008 | 66.657 |
Nice, isn't it?
However, you are right in so far as you can only apply this settings to attributes that originate from attribute views. No key figures/measures or calculated columns are supported for this feature.
Nevertheless, a really nice thing to use in your OLAP queries, isn't it?
- Lars