Tips and Notes
|
Topic |
Tip |
Details |
|---|---|---|
|
Warning on PA SQL queries |
Think twice before using PA SQL Query API. Always ensure that you have designed your tables properly, to be well suited for solution of the problem before you start doing heavy PA SQLs on them. No special query will help, if your tables design does not fit the solution of the problem. |
|
|
Querying saved/cached Datamart query |
When querying the "saved/cached query", you query a different database (particularly the H2 engine which is used to store in-memory data), so you must use different "select projection expressions". Specifically, for example, if you need to do |
|
|
Datamart query expressions are valid ONLY for direct Datamart queries, not for cached (Table Context) tables queries. For cached tables we use the H2 database which has a slightly different syntax. |
||
|
Date functions do not use data from cal Data Source |
These functions ( |
|
|
Money and Number fields extended values |
Money and Number fields with “Per Unit” measure will be multiplied by the quantity field with “Per Unit Basis” function when querying the datamart. This applies only to datamarts. |
|
|
Automatic Currency conversion |
Money fields' values will be automatically converted from the Data Source Currency to the Datamart target Currency. It is expected that for each data source having fields of Money type that one field of Currency type is also present and added to the Datamart to enable the automatic conversion. |
Common Datamart setup issues and their solutions
|
Issue |
Solution |
|---|---|
|
Blank Money values in DM due to missing or bad currency conversion |
|
|
Wrong totals due to missing or bad quantity multiplication |
|
|
SI/CI Dashboards and Agent calculations are run in different currencies and units of measure than the ones expected by the customer |
|
|
Year, Month and Week dimensions are left blank |
|