Forum Discussion
B_Ed1978
3 years agoNew Member
totals help
Hi There I have a measure where if I don't have an actual I use a forecast, this measure works well at the monthly level , but I am not sure why I can't get my total to work. Actuals - $8,335,806 (J...
- 3 years ago
Hi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
ACT / FCT = SUMX ( DISTINCT ( 'TableName'[Period Month] ), CALCULATE ( IF ( SUMX ( 'FY23 Data', 'FY23 Data'[ACT] ) = BLANK (), SUMX ( 'FY23 Forecast', 'FY23 Forecast'[FCT] ), SUMX ( 'FY23 Data', 'FY23 Data'[ACT] ) ) ) )
Jihwan_Kim
Super User
3 years agoHi,
I am not sure how your datamodel looks like, but please try something like below whether it suits your requirement.
ACT / FCT =
SUMX (
DISTINCT ( 'TableName'[Period Month] ),
CALCULATE (
IF (
SUMX ( 'FY23 Data', 'FY23 Data'[ACT] ) = BLANK (),
SUMX ( 'FY23 Forecast', 'FY23 Forecast'[FCT] ),
SUMX ( 'FY23 Data', 'FY23 Data'[ACT] )
)
)
)
- B_Ed19783 years agoNew Member
Thankyou so much this worked 👍