Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1644396535956.png

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.

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
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:

vyalanwumsft_0-1644396535956.png

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.

Jihwan_Kim
Super User
Super User

Hi,

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

It is for creating a calculated column.

 

Picture1.png

 

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

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.