Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

tracking changes by date column

Hi all, Appologies for asking this question again but im struggling to visualise some of the prior examples.    I have a weekly snapshot of data pulled from our system as per below.   WC ID ...
  • v-angzheng-msft's avatar
    4 years ago

    Hi, Anonymous 

    Try this:

    Allocated Count = 
    var _t=SUMMARIZE(ALL('Table'),[Allocation Date],[WC])
    var _addRank=ADDCOLUMNS(_t,"_rank",RANKX(FILTER(_t,[Allocation Date]=EARLIER([Allocation Date])),[WC],,ASC))
    
    var _thisDate=MINX('Table',[Allocation Date])
    var _that_WC=MINX(FILTER(_addRank,[Allocation Date]=_thisDate&&[_rank]=1),[WC])
    var _if=IF(_thisDate=BLANK(),0,
    IF(MAX('Table'[WC])=_that_WC,1,0))
    
    return _if


    Result:

    Please refer to the attachment below for details.

    Hope this helps.

     

     

    Best Regards,
    Community Support Team _ Zeon Zheng


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