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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
knishal
Regular Visitor

Show OverDue Task - Sharepoint Task List

Hi I am using a sharepoint task list to visualize data. I would like to create two additional column to view overdue task and completed task. I got the following error:

 

knishal_0-1661184507061.png

 

knishal_1-1661184528993.png

Any help will be appreciated

 

 

 

1 ACCEPTED SOLUTION

Hi @knishal ,

 

Maybe this formual

=

VAR _D=DATEDIFF(TODAY(), Tasks[DueDate]DAY )

RETURN

IF(_D<1,"OVERDUE Task",_D)

 

Best Regards

Community Support Team _ chenwu zhu

 

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

4 REPLIES 4
v-chenwuz-msft
Community Support
Community Support

Hi @knishal ,

 

Please try change the type of [DueDate] to Date to fix the error meassage.

vchenwuzmsft_0-1661411020830.png

 

Or try this code to create a measure and put it in this visualization

if(max('table'[Duedate]) >today ,1,0)

 

Best Regards

Community Support Team _ chenwu zhu

 

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

 

 

@v-chenwuz-msft  that works but shows "1" how can I display the amount of days it will be due in?

 

This is what I use: 

UpcomingTask = IF(MAX(Tasks[DueDate]) >TODAY(),1,0)

 

knishal_0-1661429977532.png

 

@v-chenwuz-msft I currently have this formula which shows the amout of days its due by:

 

OverDueTask = DATEDIFF(TODAY(), Tasks[DueDate], DAY )
 
How can I modify it to show only OVERDUE Task and the day count?
 
knishal_1-1661430283488.png

 

Hi @knishal ,

 

Maybe this formual

=

VAR _D=DATEDIFF(TODAY(), Tasks[DueDate]DAY )

RETURN

IF(_D<1,"OVERDUE Task",_D)

 

Best Regards

Community Support Team _ chenwu zhu

 

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors