Hi,
I am new to ssas and I have the following problem.
When I run the below query the results for count is different to the results for count measure in the cube although the cube is using exactly same tables as the below query . I even checked the dimension usage section for the relationships between the tables and relationships were build exactly on the same columns as in the below query.so, please somebody explain me where do I have to make changes in the cube or how do i diagnose this issue in the cube?
My objective is to get the query result in the cube i.e., count.
If anybody has any kind of suggestion on where to look to resolve this issue, please help me out here and i very much appreciate any kind of help
Thank you
SELECT
T3.name,
T4.number
,count(t1.Number)as Count
,t4.psk
,t5.desc
FROM
view.table1 t1
INNERJOIN View.table2 t2
ON t1.psk = t2.psk
INNERJOIN View.table3 t3
ON t2.SK = t3.SK
INNERJOIN view.table4 t4
ON t1.PSK = t4.psk
INNERJOIN view.table5 t5
on t4.tsk = t5.tsk
where t1.Number='12345'
groupby t3.name,
t4.number,t4.psk
,t5.desc
RESULT of the above query
name number count psk desc
Sel 12345 1 437188 Required
Sel 12345 26 437188 Complete
Sel 12345 1 437188 Deliver
The following is what I got when I browse the cube
Number | 12345 | |
desc | Column Labels |
|
Row Labels | Sel | Grand Total |
Complete | 8 | 8 |
Received | 2 | 2 |
Review | 1 | 1 |
Grand Total | 11 | 11 |