Forum Discussion

Fsciencetech's avatar
Fsciencetech
Icon for Helper III rankHelper III
5 years ago
Solved

Dax formula not working

Hi folks,   Need your help, I don't want to sum to [SupplierPOCreated], Only need to subtract, how do modify below dax. Material Age = CALCULATE( DATEDIFF( MAX( OSMSData[OSLastReplanDate].[D...
  • v-lionel-msft's avatar
    v-lionel-msft
    5 years ago

    Hi Fsciencetech ,

     

    Or try this formula.

    Material Age = 
    CALCULATE(
    DATEDIFF(
        MAX( OSMSData[OSLastReplanDate].[Date] ),
        MAX( OBFact_Current[SupplierPOCreated].[Date] ),
        DAY
    ),
    FILTER(
        OBFact_Current,OBFact_Current[FutureCrdFlag] = "N" && OBFact_Current[SupplierPOCreated].[Date] <> BLANK()
        )
    )

     

    Best regards,
    Lionel Chen

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