最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

sql server - Do OLAP Cube architecture include the unrequired tables to the queries? - Stack Overflow

matteradmin6PV0评论

I have an OLAP Cube created by relating about 40 tables(5 facts and 35 dimensions).

The question im interested in is if I query (select count(*) from tableA) to the SQL Server, should the result differ from the result of the equivalent query on the PowerBI server queried on the OLAP Cube?

For example :

Table A [Acol1, Acol2, Acol3] Table B [Bcol1, Bcol2, Bcol3] Table C [Ccol1, Ccol2, Ccol3] Table D [Dcol1, Dcol2, Dcol3]

And the architecture looks like:

A<->B<->C->D... AA<->B<->E...

And so on.

The query on the SQL Server: select count(*) from tableA

The query on the SQL Server: MDXFormat(select count(*) from tableA) (I do not know how to write MDX sadly)

select count(*) from tableA The output : 950

MDXFormat(select count(*) from tableA) The output : 952

I expected them to be the same, but there is a slight difference for some reason. I think OLAP Cube and the SQL Server do not have the same data. What I expect from OLAP Cube is to include only the related tables to the query, but I'm not sure if that's the case or not.

Post a comment

comment list (0)

  1. No comments so far