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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
ishanajmani
Regular Visitor

Creating a graph based on dates

I’m new to Power BI and trying to gain exposure, so I’d really appreciate if someone can guide me in the right direction.

 

I have the following columns that are relevant to the graph:

-Report Type (contains categories for tasks)

-Completion Date (due date)

-Description (Task description)

 

I need to create a graph based on the following conditions

 

If Completion Date is before TODAY, then ‘Overdue’

If Completion Date is Today or within the next 30 Days, then ‘Due in Next Month’

If Completion Date = ‘TBD’, then ‘TBD’

If Completion Date = ‘On-Going’, then ‘In-progress’

If Report Type = ‘Next 60 Days Tasks, then ‘Future Tasks’

 

I’d like to create a bar graph for the above.

 

I tried creating a new column called Status and tried putting filters for dates but filters only took hard dates as opposed to ‘Today’ or ‘getdate’ and static dates don’t really help.

 

I'd appreciate any feedback if I should create a filter in the graph, another column, not sure where to start...

 

Thank you!

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @ishanajmani,


I need to create a graph based on the following conditions

 

If Completion Date is before TODAY, then ‘Overdue’

If Completion Date is Today or within the next 30 Days, then ‘Due in Next Month’

If Completion Date = ‘TBD’, then ‘TBD’

If Completion Date = ‘On-Going’, then ‘In-progress’

If Report Type = ‘Next 60 Days Tasks, then ‘Future Tasks’

 

I’d like to create a bar graph for the above.


What data do you want to show in the bar graph? Could you be more precisely with it(like what data for Axis field and Value field)?

 

What's the data type of the "Completion Date" column in your table? Could you post some sample data of your table with your expected result?Smiley Happy

 

Regards

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.