Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

not able to calculate total order using aggregation

$
0
0

Hi,

            I am getting the #error(The function expect a string or numeric expression for the argument.A touple set experssion was used) on the calculated member(CALC1). I want ot display productname(having order quantity <600),order quantity for each product which is less than 600,total order quanity(will be same for all records).

EG:

Product Name|Order Quantity|CALC1

P1|350|4000

p2|200|4000

p3|599|4000

etc..

I have tried the following query.

with

set NMt as nonempty(filter([Dim Product].[English Product Name].members,[Measures].[Order Quantity] <600))

member

[Measures].CALC1 as ([Measures].[Order Quantity],NMt)

select

NMt on rows,{[Measures].[Order Quantity],[Measures].CALC1} on columns

from

[Adventure Works DW] 


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>