Forum Discussion

rampie's avatar
rampie
Icon for Kudo Commander rankKudo Commander
9 months ago
Solved

UDF With Time Int or Relationship functions

Has anyone try combining UDF with Time Intelligence or Relationship functions the results of these UDF it's the same value than the original measure, i don't see any limitations in the UDF documentat...
  • parry2k's avatar
    9 months ago

    rampie it should be something like this:

     

    UDF_Calcultate_LY_StoreCart = (
            MeasureName : EXPR
         ) => CALCULATE( MeasureName, USERELATIONSHIP( Dim_Date[LYDate], Dbo_StoreCart[OrderDate] ))