为什么我的措施在SSA中的Molap Cube中恢复为无效?

发布于 2025-01-25 18:23:44 字数 1065 浏览 2 评论 0原文

我有一个相当简单的结构的立方体:

”

我的测量值也很简单,我只有一个总和和计数。

但是,当我尝试部署立方体时,它会返回测量值的空值:

“实践中的测量”

如您所见,我甚至不得不启用显示空细胞,否则它甚至都不会显示任何结果,只说“找不到行。单击以执行查询。”。即使我尝试简单地检索Student_ID或任何其他列而不使用任何测量值,除非我切换“显示空单元格”按钮,否则我会发现无行的语句。

这样做的原因是什么?

我检查了是否启用了所有维度的聚合,这是。桌子之间的连接也可以,我一一检查一下,即使在实践中,您也可以看到从老师和学生中选择的方式都很好:

“工作查询的示例”

也值得一提的是,以前的Cube是在职的。我尝试添加一些计算,然后一旦我注意到该立方体无法正常工作。目前,立方体中只有测量值,但仍无法正常工作。

I have a cube with a fairly simply structure:

The cube's structure

My measurements are also very simple, I just have a sum and a count of the grades.

Measurements

However when I try to deploy the cube, it returns null values for the measurements:

Measurements in practice

As you can see, I even had to enable show empty cells, otherwise it wouldn't even show any results and just state "No rows found. Click to execute query.". Even if I try to simply retrieve the student_id for example or any other column without using any measurements, I get the no rows found statement unless I toggle the "Show empty cells" button.

What could be the reason for this?

I checked if aggregation was enabled for all dimension and it was. Connections between the tables are also okay, I checked it one by one and even in practice you can see how selecting both from teachers and students works perfectly well:

Example of a working query

It's also worth mentioning that previously the cube was working. I tried adding some calculations then removed them once I noticed that the cube wasn't working properly. Right now there are only measurements in the cube but it still doesn't work as expected.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

假面具 2025-02-01 18:23:44

我遇到了这个问题,我的措施和计算运作良好,然后开始返回“(null)”,就像在您的屏幕截图 @Kevin-Eldurson中一样。

我提出的一个问题是无意中从计算脚本的顶部删除“计算”命令。

'我发现,当我为我的测量组创建一个新分区时,数据再次返回。尝试转到.Cube文件的“分区”选项卡,并为您的度量组创建一个分区。

I ran into this issue where my measures and calculations were working great and then started to return "(null)", exactly like in your screenshot @kevin-eldurson.

One issue I made was unintentionally removing the "CALCULATE" command from the top of the calculations script. measure not showing data after calculations created

After that did not resolve my issue I found when I created a new partition for my Measure Group, data was returned again. Try to go to the Partition tab of your .cube file and create a partition for your Measure Group.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文