![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have the following fact table id qty qtyleft qtydam delivyesno 1 5 2 1 1 1 2 0 0 0 I need to create a calc memeber to read netsale = ( (when delivyesno = 1 then qty - qtyleft - qtydam) - (when delivyesno = 0 then qty) ) At the moment I have qty, qtyleft, qtydam as measures. Please advice. |
#3
| |||
| |||
|
|
I created the following expression in SS2k5 olap cube and it worked for me. (case when delivyesno = 1 then qty-qtyleft-qtydam else 0 end) - (case when delivyesno = 0 then qty else 0 end) HTH.. -- http://zulfiqar.typepad.com BSEE, MCP "Chris" wrote: Hi, I have the following fact table id qty qtyleft qtydam delivyesno 1 5 2 1 1 1 2 0 0 0 I need to create a calc memeber to read netsale = ( (when delivyesno = 1 then qty - qtyleft - qtydam) - (when delivyesno = 0 then qty) ) At the moment I have qty, qtyleft, qtydam as measures. Please advice. |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |