Expand my Community achievements bar.

SOLVED

How to aggregate data without using data of filtering dimension

Avatar

Level 2

Hi All,

 

i forgot how to aggregate data from a table without using data of the filtering dimension or creating a link.

 

indeed, I have a data schema “orders” with a list of orders ( order date, order id, customer id, item, price) and i want to transform (pivot) that table at customer id in order to have the number of items ordered per customer) : I do not want to use the method by going first to the “customer” data shema in the query and adding data 

 

Thanks in advance for your answers,

Terry

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

If the join cardinality is 'multiple' on the schema, you should be presented with a wizard to configure the pivot in the select part of the query, e.g. how many rows to pivot into cols.

If the link isn't defined in schema, the same can be done with an enrichment.

For filtering, no pivot is necessary- just use a filtering dimension or an exists clause.

 

Thanks,

-Jon

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

 

If the join cardinality is 'multiple' on the schema, you should be presented with a wizard to configure the pivot in the select part of the query, e.g. how many rows to pivot into cols.

If the link isn't defined in schema, the same can be done with an enrichment.

For filtering, no pivot is necessary- just use a filtering dimension or an exists clause.

 

Thanks,

-Jon