Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
waterduck
Aged Yak Warrior
982 Posts |
Posted - 2012-08-08 : 03:05:33
|
| Hi,Need help to convert following MDX query into MSSQL querycase when distinctcount([Cus ID].[Cus ID].[Cus ID])<>0 then (case when [Measures].[N Count]<[Measures].[N Count1] then (distinctcount([Cus ID].[Cus ID].[Cus ID])-1) else distinctcount([Cus ID].[Cus ID].[Cus ID])end)endThx! |
|
|
waterduck
Aged Yak Warrior
982 Posts |
Posted - 2012-08-08 : 03:46:42
|
| found it1. Group by cus id2. case when n count < n count1 then 0 else 13. group by again without cus id |
 |
|
|
|
|
|