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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
CaveOfWonders
Helper IV
Helper IV

Highlight columns up to current phase in project in table visual

Hi community,

 

Would appreciate your help. I have attached a link to a pbix file with some dummy data loaded to make this easier.

 

Link

 

I have this table visual in Power BI which has a list of projects and a column at the end which indicates which phase each row is in.

TableImage.png

 

The desired outcome I would like is shown in the image below. I want the columns to be highlighted up to the stage which they have reached. 

 

Forgot to Add: If possible, it would be great to highlight the current stage in a darker shade.

 

Note: This needs to be in a Table visual

DesiredOutcome.png

 

I have tried a few different measures but ends up as a dead end each time.

 

Thank you in advance.

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @CaveOfWonders 

use conditional formatting, 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

https://www.myonlinetraininghub.com/conditional-formatting-in-power-bi-tables-and-matrices

Since it's conditional formatting on columns, you need to do it for each column. I created the following measures and set them up for the first 3 date columns.

Measure1 = 
var _phase= MIN('Table'[Phase])
var _curph=1
return IF(_curph<=_phase,"#FAE5D3")
Measure2 = 
var _phase= MIN('Table'[Phase])
var _curph=2
return IF(_curph<=_phase,"#FAE5D3")
Measure3 = 
var _phase= MIN('Table'[Phase])
var _curph=3
return IF(_curph<=_phase,"#FAE5D3")

for example, click Date column - Conditional formatting - background color 

vxiaotang_0-1668675689130.pngvxiaotang_1-1668675705676.png

result

vxiaotang_2-1668675790381.png

I only set it up for the first three date columns.

 

for more please see the sample file attached below

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

3 REPLIES 3
CaveOfWonders
Helper IV
Helper IV

Thank you so much v-xiaotang this has worked a charm. 

v-xiaotang
Community Support
Community Support

Hi @CaveOfWonders 

use conditional formatting, 

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting

https://www.myonlinetraininghub.com/conditional-formatting-in-power-bi-tables-and-matrices

Since it's conditional formatting on columns, you need to do it for each column. I created the following measures and set them up for the first 3 date columns.

Measure1 = 
var _phase= MIN('Table'[Phase])
var _curph=1
return IF(_curph<=_phase,"#FAE5D3")
Measure2 = 
var _phase= MIN('Table'[Phase])
var _curph=2
return IF(_curph<=_phase,"#FAE5D3")
Measure3 = 
var _phase= MIN('Table'[Phase])
var _curph=3
return IF(_curph<=_phase,"#FAE5D3")

for example, click Date column - Conditional formatting - background color 

vxiaotang_0-1668675689130.pngvxiaotang_1-1668675705676.png

result

vxiaotang_2-1668675790381.png

I only set it up for the first three date columns.

 

for more please see the sample file attached below

 

Best Regards,

Community Support Team _Tang

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

Thank you v-xiaotang. I will test this to see if I can get it to work. Seems like it might.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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