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

Re: How to do groupby in Webi

$
0
0

Hi Parimala,

 

When you run a query that includes a measure object with other types of objects, a
Group By clause is automatically inferred in the Select statement.

 

The inference of the Group By clause depends on the following SQL rule:

if the Select clause line contains an aggregate, everything outside of that aggregate in the clause must also appear in the Group By clause.

 

Based on this rule, any dimension or detail used in the same query as a measure
object will always be included in an automatically inferred Group By clause.


When a query uses at least one dimension or detail object and a measure (at which some aggregation function is set at universe level), the inference engine includes a Group By clause with all the objects except the measure in the SQL statement.

 

Hope it helps!!

 

-Ashish Dekate

 

 


Viewing all articles
Browse latest Browse all 8557

Latest Images

Trending Articles



Latest Images

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