Forum Discussion

BBECQ's avatar
BBECQ
Regular Visitor
1 year ago
Solved

Do not visualize data on graph after today (?)

Hi all, This is my DAX formula to calculate MAT values =  MAT Test = CALCULATE (     SUM(MonthlySalesBeLux[Ex Fac €]),     FILTER (         DATESINPERIOD(             DateTable[Date],     ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi BBECQ, hello all, thank you for your prompt reply!

     

    Update the measure as shown below:

    MAT Test = 
        CALCULATE(
            SUM(FactTable[Ex Fac €]),
            FILTER (
                DATESINPERIOD(
                    DateTable[Date],
                    MAX(DateTable[Date]),
                    -12,
                    MONTH
                ),
                DateTable[Date] <=MAX(FactTable[Date])
            ),
            FactTable[Ex Fac €] <> 0  
        )
    
    

    Result:

     

    Best regards,

    Joyce

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.