简体   繁体   English

参数仅在 mondrian 或 sql 中也在 pentaho

[英]Parameters only in mondrian or in sql too in pentaho

Good morning, I have a question I try to pass some parameters to an sql query of the pentaho cde and I get an error (the query does not show anything).早上好,我有一个问题,我尝试将一些参数传递给 pentaho cde 的 sql 查询,但出现错误(查询未显示任何内容)。 The examples that I look on the internet use MDX on Mondrian.我在互联网上查看的示例在蒙德里安上使用 MDX。 Is it mandatory to create a schema in Mondrian and use MDX?在蒙德里安中创建模式并使用 MDX 是强制性的吗? Thank you very much非常感谢

You will find below description from pentaho docs您将在 pentaho 文档中找到以下描述

  1. To create a new Mondrian schema, click the New button, or go to the File menu, then select New, then Schema.要创建新的 Mondrian 模式,请单击“新建”按钮,或转到“文件”菜单,然后依次选择“新建”和“模式”。 A new schema sub-window will appear.将出现一个新的架构子窗口。 Resize it to fit your preference.调整大小以适合您的喜好。
  2. It's easier to visualize your physical data model if you have it in front of you.如果您的物理数据模型摆在您面前,则可视化它会更容易。 Turn on the JDBC Explorer from the New section of the File menu and position it according to your preference.从“文件”菜单的“新建”部分打开 JDBC 资源管理器,并根据您的喜好放置它。 If you have a third-party database visualization tool that you are more familiar with, use that instead.如果您有更熟悉的第三方数据库可视化工具,请改用它。 The JDBC Explorer is not interactive; JDBC Explorer 不是交互式的; it only shows the table structure of your data source so that you can see at a glance what the names of the columns and rows in it.它只显示数据源的表结构,以便您一目了然地看到其中的列和行的名称。
  3. Typically your first action when creating a schema is to add a cube.通常,创建架构时的第一个操作是添加多维数据集。 Right-click the Schema icon in the schema window, then select Add cube from the context menu.右键单击架构窗口中的架构图标,然后从上下文菜单中选择添加多维数据集。 Alternatively you can click the New Cube button in the toolbar.或者,您可以单击工具栏中的“新建多维数据集”按钮。 A new default cube will show up in your schema.新的默认多维数据集将显示在您的架构中。

  4. Add a table by clicking the New Table button, or by right-clicking your cube, then selecting Add Table.通过单击“新建表”按钮或右键单击多维数据集,然后选择“添加表”来添加表。 This will be your fact table.这将是您的事实表。 Alternatively you can select View or Inline Table if these are the data types you need for your fact table.或者,如果这些是事实表所需的数据类型,您可以选择查看或内联表。

  5. Click the Table entry in the name field of your new table, and select or type in the name of the table in your physical model that you want to use for this cube's fact table.单击新表名称字段中的表条目,然后在物理模型中选择或键入要用于该多维数据集的事实表的表名称。
  6. Add a dimension by right-clicking the cube, then selecting Add Dimension, or by clicking the New Dimension button.通过右键单击多维数据集,然后选择添加维度或单击新建维度按钮来添加维度。
  7. When you add a dimension, a new hierarchy is automatically created for it.添加维度时,会自动为其创建新的层次结构。 To configure the hierarchy, expand the dimension by clicking the lever icon on the left side of the dimension's tree entry, then click on New Hierarchy 0. Choose a primaryKey or primaryKey Table.要配置层次结构,请通过单击维度树条目左侧的杠杆图标展开维度,然后单击 New Hierarchy 0。选择一个主键或主键表。
  8. Add a table to the hierarchy by right-clicking the hierarchy, then selecting Add Table from the context menu.通过右键单击层次结构,然后从上下文菜单中选择添加表,将表添加到层次结构。
  9. Add a level to the hierarchy by right-clicking the hierarchy, then selecting Add Level from the context menu.通过右键单击层次结构,然后从上下文菜单中选择添加级别,将级别添加到层次结构。
  10. Add a member property to the level by right-clicking the level, then selecting Add Property from the context menu.通过右键单击级别,然后从上下文菜单中选择添加属性,将成员属性添加到级别。
  11. Add a measure to the cube by right-clicking the cube and selecting Add Measure from the context menu.通过右键单击多维数据集并从上下文菜单中选择添加度量,向多维数据集添加度量。

  12. Choose a column that you want to provide values for, then select an aggregator to determine how the values should be calculated.选择要为其提供值的列,然后选择一个聚合器以确定应如何计算值。

    These instructions have shown you how to use Schema Workbench's interface to add and configure basic Mondrian schema elements.这些说明向您展示了如何使用 Schema Workbench 的界面来添加和配置基本的 Mondrian 模式元素。

pentaho docs pentaho 文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM