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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Aliwells632
Regular Visitor

Today line on Gantt chart made form Matrix.

Hello all, 

 

I have a Gantt chart ive made from a matrix, as my company doesnt allow the Gantt chart visualizations. Does anyone know how i can get a today line put into the Chart? 

 

Aliwells632_0-1753945337811.png

 

1 ACCEPTED SOLUTION
v-sgandrathi
Community Support
Community Support

Hi @Aliwells632,

 

If you need to add a "Today" indicator to a Gantt chart built with a matrix visual in Power BI (without using custom visuals), you can use DAX and conditional formatting as a workaround. Start by creating a calculated column in your Date table, such as IsToday = IF('Date'[Date] = TODAY(), 1, 0), to flag the current date. Next, add a column like TodayMarker = IF('Date'[Date] = TODAY(), "●", BLANK()) to show a marker (such as ●, |, or "Today").
In your matrix, place tasks as rows and dates as columns, and use TodayMarker as the value. This will add a marker under today’s date. You can also use conditional formatting to highlight the today column, making it more visible. While it won’t create a vertical line, this method makes today’s date easy to spot in your matrix Gantt chart.

Thank you.

View solution in original post

3 REPLIES 3
v-sgandrathi
Community Support
Community Support

Hi @Aliwells632,

 

If you need to add a "Today" indicator to a Gantt chart built with a matrix visual in Power BI (without using custom visuals), you can use DAX and conditional formatting as a workaround. Start by creating a calculated column in your Date table, such as IsToday = IF('Date'[Date] = TODAY(), 1, 0), to flag the current date. Next, add a column like TodayMarker = IF('Date'[Date] = TODAY(), "●", BLANK()) to show a marker (such as ●, |, or "Today").
In your matrix, place tasks as rows and dates as columns, and use TodayMarker as the value. This will add a marker under today’s date. You can also use conditional formatting to highlight the today column, making it more visible. While it won’t create a vertical line, this method makes today’s date easy to spot in your matrix Gantt chart.

Thank you.

ive added the columns to my date table. 

Aliwells632_0-1753963673931.png

But it wont let me add two values to the table

Aliwells632_1-1753963711823.png

 

Hi @Aliwells632,

 

Display Both Task Progress and Today Marker in One Column:

Power BI matrix visuals usually support only one value field, so you can combine your task progress and Today marker into a single column using DAX.

How to Create a Combined Display Column:

In your data model, add a new calculated column as follows:

CombinedDisplay =

VAR IsToday = IF('Date'[Date] = TODAY(), "●", "")

VAR TaskValue = [YourTaskProgressColumn] -- Replace this with your actual task value column

RETURN

IF(IsToday <> "", IsToday, TaskValue)

This will display the ● marker for today’s date, and the task progress value for other dates.

Using This Column in the Matrix:

Set CombinedDisplay as the value field in your matrix visual. This will show either the task progress or the Today marker, depending on the date.

To highlight today, use Conditional Formatting on the matrix and set background or font color formatting based on the IsToday column.

 

Thank you.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.