Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Help needed

Hi All,

please see below data table , I'm supposed to compute task completed not completed ,so if the end date is within the same week ending as last weeks ending then it should show complete else not complete. Tasks are repetitive as every week new table will have historic records as well. I need help with either calculated column or dax 

 

task idWeek endingStart Dateend date
klju09/01/202201/06/202117/01/2022
lout09/01/202202/06/202118/01/2022
klout09/01/202203/06/202119/01/2022
klju09/01/202204/06/202120/01/2022
lout16/01/202205/06/202121/01/2022
klout16/01/202206/06/202122/01/2022
klju16/01/202207/06/202123/01/2022
lout23/01/202208/06/202124/01/2022
klout23/01/202209/06/202125/01/2022
klju23/01/202210/06/202126/01/2022
lout30/01/202211/06/202127/01/2022
klout30/01/202212/06/202128/01/2022
klju30/01/202213/06/202129/01/2022
lout30/01/202214/06/202130/01/2022

 

Kind Regards

  • Hi, Anonymous ;

    Try to create a column.

    Column = IF( WEEKNUM([Week ending],2)=WEEKNUM([end date],2),"complete","Not complete")

    The final output is shown below:

    Please correct me if I have misunderstood and let me know what your logic is? Looking forward to your reply.


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • Hi,

    I am not sure if I understood your question correctly, but please check the below.

    It is for creating a calculated column.

     

     

    Result CC =
    IF ( Data[end date] <= Data[Week ending], "Complete", "Not complete" )

     

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Community Support

    Hi, Anonymous ;

    Try to create a column.

    Column = IF( WEEKNUM([Week ending],2)=WEEKNUM([end date],2),"complete","Not complete")

    The final output is shown below:

    Please correct me if I have misunderstood and let me know what your logic is? Looking forward to your reply.


    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.