Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

how to use Dynamic SQL inside of a calculation view

$
0
0

Hi all,

 

I want to do a data selection over a analytic view based on a : dimension, a measure and a numbers of filters dynamically specified by the user:

The only solution I found to do this kind of data selection is to use Dynamic SQL this way:

 

select '||:currentDimension||' as ID, sum('||:currentMeasure||') as SUM_MEASURE from _SYS_BIC."efashion/EFASHION_STAR_SCHEMA"  '||:currentFilters||' GROUP BY '||:currentDimension;

but when I try to use this within a calculation view, I get an error saying that:

feature not supported: Dynamic SQL is not supported in the READ ONLY procedure/functionnSet Schema DDL statement

so how to do to get this to work in a calculation view, and if you have any other ideas on how to get this kind dynamic data selection, please feel free to share!

 

Thanks & Regards

Mohamed Ali


Viewing all articles
Browse latest Browse all 8689

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>