![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
AS 2000. I have two measures: A and B. If A > B, then add A to C. If A < B, then add B to C. A B C J 10 2 10 F 15 10 25 M 2 20 45 I am trying to use PeriodsToDate to function, but it did work so well. It gives me correct answer for Jan (10) and Feb (10+15), but not at Mar (2+10+20) IIF ([Measures].[A] >= [Measures].[b], Sum(PeriodsToDate([Date].[(All)]), [Measures].[A]), Sum(PeriodsToDate([Date].[(All)]), [Measures].[b])) Am I going the wrong direction?? I'd appreciate any pointers. |
![]() |
| Thread Tools | |
| Display Modes | |
| |