Current setup
PowerPivot 2010.
Date dimension table with [Date] as key field and [Type of measure], [Runrate base] as mapping fields. The values in [Type of measure] are either 'Actuals' or 'Budget' and the values in [Runrate base] are either 'X' or null.
Cost fact table
Calculated metric [Runrate] that are to either a) summarize values from cost fact table for dates which are mapped as 'Actual' or b) calculate average from cost fact table for dates which are tagged with 'X' in [Runrate base] field
Problem
Formula for measure [Runrate] for calculating according to a) and according to b) are OK.
Formula for measure [Runrate] for deciding WHETHER to do a) or b) is the problem.
Attempted approaches
Have attempted to do:
- If [Type of measure] = "Actuals" then a) else b)
- Use supporting measures such as [Actuals] with filtering [Type of measure] = 'Actuals' and then in measure [Runrate] have a 'if then else' statement
Status
Stuck. Nothing have worked so far.