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

Re: IDT generating group by on some dimensions, not others

$
0
0

Hi

 

We had almost the same problem in Webi Rich Client 4.1.6 on a unv-universe (UDT). One dimension didn’t show up in Group By. In our universe we have prefix on all objects, but the object that didn’t generate a Group By was missing the prefix in the select statement. The object was connected to the Table with prefix in Tables list. We changed the select to include prefix and the problem was solved.

 

It is possible to see the sql (see below) in the script editor in WEBI RICH Client.

I don’t know if it is the same in IDT, where you have datafoundation and business-layer. I don’t know if UDT failed to put on prefix on this object in connection to renaming table with prefix. The diffence on the two objects is that the “failed object” have some calculation in the select statement, and the working object don’t.

 

Example:

 

Before:

Connection Database Dm_x

Prefix Dm_x

Dimension1 Select: DM_x.dbo.table.dimension1

Dimension2 Select: (datepart(year,dbo.table.dimension_date2) * 100) + datepart(month,dbo.table.dimension_date2)

Measure Count(DM_x.dbo.table.dimension3)

 

SQL:

Select DM_x.dbo.table.dimension1, (datepart(year,dbo.table.dimension_date2) * 100) + datepart(month,dbo.table.dimension_date2), Count(DM_x.dbo.table.dimension3) From DM_x.dbo.table GROUP BY DM_x.dbo.table.dimension1

 

 

After:
Connection Database Dm_x
Prefix Dm_x

Dimension1 Select: DM_x.dbo.table.dimension1

Dimension2 Select: (datepart(year,DM_x.dbo.table.dimension_date2) * 100) + datepart(month, DM_x.dbo.table.dimension_date2)

Measure Count(DM_x.dbo.table.dimension3)

 

SQL:

Select DM_x.dbo.table.dimension1, (datepart(year,DM_x.dbo.table.dimension_date2) * 100) + datepart(month,DM_x.dbo.table.dimension_date2), Count(DM_x.dbo.table.dimension3)

From DM_x.dbo.table

GROUP BY DM_x.dbo.table.dimension1, (datepart(year,DM_x.dbo.table.dimension_date2) * 100) + datepart(month,DM_x.dbo.table.dimension_date2)

 

Regards Brian


Viewing all articles
Browse latest Browse all 2695

Trending Articles



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