cancel
Showing results for 
Search instead for 
Did you mean: 

Select from Analytical View

Former Member
0 Kudos

Hello,

I'm trying to do select from Analytical view.

In some Analytical views I succeed but in others I get the message:

What am I doing wrong?

Thanks,

Amir

Accepted Solutions (1)

Accepted Solutions (1)

former_member182302
Active Contributor
0 Kudos

Hi Amir,

If your analytic view has a calculated column then the select query works since even though it is analytical view because of calculated columns it creates additional calculation view like wrappers and hence select works

On the other hand if it doesn't have a calculated column you will get the error you mentioned, in this case you must use the select query with group by clause to solve the issue

Regards,

Krishna Tangudu

Answers (1)

Answers (1)

justin_molenaur2
Contributor
0 Kudos

It would likely help speed up analysis if you provided the SQL you are trying to execute rather than just provide the error message alone.

But as Krishna stated, when selecting from an AN you need to always use aggregation functions and group by.

SELECT COL1, SUM("MEASURE1")

FROM AN

GROUP BY COL1

Regards,

Justin