Package Connector and sort order

Post Reply
mvaspal
Community Contributor
Posts: 341
Joined: Wed Nov 03, 2010 9:16 pm
OLAP Product: tm1
Version: 10 2 2 - 2.0.5
Excel Version: From 2007 to 2013
Location: Earth

Package Connector and sort order

Post by mvaspal »

Hi

We try to import dimensions from Report Studio reports, using the Custom Query option in the TI and it seems it ignores the sort order that we set in the report. Now, as this is a dimension update TI, we cannot live without the sort order.
The only workaround we could find was that we set up one SQL view per hierarchy, import these to FM, and create a report over each view. Or forget package connector.

Anyone managed to use sorting from RS reports?

tested with tm1 v10.2.1 and 10.2.2

Thanks
Matyas
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Package Connector and sort order

Post by jim wood »

Are you using a subset as the data source? Have you tried setting the order you need in the subset?
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
mvaspal
Community Contributor
Posts: 341
Joined: Wed Nov 03, 2010 9:16 pm
OLAP Product: tm1
Version: 10 2 2 - 2.0.5
Excel Version: From 2007 to 2013
Location: Earth

Re: Package Connector and sort order

Post by mvaspal »

No, I use a report studio list report as data source, and package connector to connect to the report
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Package Connector and sort order

Post by jim wood »

You can set the dimension order in architect. Would this help or is your order custom?
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
mvaspal
Community Contributor
Posts: 341
Joined: Wed Nov 03, 2010 9:16 pm
OLAP Product: tm1
Version: 10 2 2 - 2.0.5
Excel Version: From 2007 to 2013
Location: Earth

Re: Package Connector and sort order

Post by mvaspal »

I checked the native SQL in both BI and TM1 TI, and it seems thet the package connector simply omits the 'order by' clause from the query, otherwise the queries are identical. We will register it with IBM now.

Jim, we have sort order IDs in the DWH for all alternative hierarchies within the dimension, we use that for sorting.
User avatar
jim wood
Site Admin
Posts: 3961
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Package Connector and sort order

Post by jim wood »

With it ignoring the order by, it will be defaulting to the index within the dimension. If you make sure you set then order when building the dimension / alternate hierarchies in TI then you might get at the very least closer,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
dr.nybble
MVP
Posts: 160
Joined: Wed Aug 17, 2011 3:51 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: Excel 2007

Re: Package Connector and sort order

Post by dr.nybble »

How do you specify sorting for the list report? Let me know and I will do some investigation.
TM1 Package Connector / Transformer simply issue a query to the BI query engine. A component called the Report Adapter uses the Report Server to generate the SQL based on the report specification.
mvaspal
Community Contributor
Posts: 341
Joined: Wed Nov 03, 2010 9:16 pm
OLAP Product: tm1
Version: 10 2 2 - 2.0.5
Excel Version: From 2007 to 2013
Location: Earth

Re: Package Connector and sort order

Post by mvaspal »

Hi

By simply clicking on the header and set sort in the icon bar.

As I wrote above, I compared the 2 generated SQLs (but only the Native SQL), and the only difference is that the TI omits the order by clause

Thanks for help!
dr.nybble
MVP
Posts: 160
Joined: Wed Aug 17, 2011 3:51 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: Excel 2007

Re: Package Connector and sort order

Post by dr.nybble »

Yes, I am able to reproduce the issue. I believe that the problem is in the Report Adapter. Follow up with support.
Post Reply