Forum Discussion
dax
Its not working can you recheck it once again my code WINDOW_SUM((IF (LOOKUP(MIN(([Date])),0)>=min(DATEADD('month',-12,[Date]) ) THEN COUNTD([TRID]) ELSE 0 END),-11,0)/12
Is there an error you are getting
- MillarJayakumar2 years agoFrequent Visitor
its not showing any value
- saud9682 years agoMemorable Member
Try this
PBI DAX Code =
CALCULATE(
AVERAGEX(
FILTER(
ALL('YourTable'),
'YourTable'[Minimun date 0] >= MINX(ALL('YourTable'), DATEADD('YourTable'[Date], -12, MONTH))
),
'YourTable'[TR Count]
),
DATEADD('YourTable'[Date], -11, MONTH),
'YourTable'[Date]
) / 12
If this does not work can you share the sample file, and remove sensitive data?
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!- MillarJayakumar2 years agoFrequent Visitor
YourTable'[Minimun date 0] ITS NOT A Column its a calculated field LOOKUP(MIN(([Date])),0)