Forum Discussion

agagnon's avatar
agagnon
Frequent Visitor
7 years ago
Solved

Table Summary Showing Incorrect Total

Hello,   I have been trying to create a measure that will allow me to look at a data source (actual revenues & expenses) and return the total if there is data for that month and otherwise return th...
  • Anonymous's avatar
    Anonymous
    7 years ago

    I belive this is a data lineage problem. Once you reference the BudgetOrActualTotal table you've created, it doesn't seems to identify the original column on the data model to filter your measure. I think you could try the following:

     

    Projection Using Budget = 
    VAR BudgetOrActual = IF( ISBLANK( [Total Actual] ), [Total Budget], [Total Actual] )
    
    RETURN
    IF( HASONEVALUE( Dates[MonthName] ),
        BudgetOrActual,
            SUMX( VALUES(Dates[MonthName] ), IF( ISBLANK( [Total Actual] ), [Total Budget], [Total Actual] ) ) )