- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Formatting Table Visual Cell Background Color based on Other Column Values
Hi Friends,
I am new to PBI and working on some reports where I have below table data loaded into PBI that I am showing in a Table visual.
ID | Type | SP |
1002 | User Story | 3 |
1003 | Task | |
1004 | Task | |
1005 | Task | |
1006 | User Story | 2 |
1007 | Task | |
1008 | Task | |
1009 | Bug | 1 |
1010 | User Story | |
1011 | Task | |
1012 | User Story | 1 |
1013 | User Story | |
1014 | User Story | 2 |
1015 | Task | |
1016 | Bug |
I want the SP column in the table visual to have specific background color as per the below conditions:
If the Type = User Story OR BUG and SP is NOT Blank (having any positive value) then the SP cell background color should be GREEN
If the Type = User Story OR BUG and SP IS Blank then the SP cell background color should be RED
if the Type <> User Story OR BUG then the SP cell background color should be a GRAY color.
Expected visual:
Please suggest.
Thanks,
Prabhat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@prabhatnath Creeate measure as per below:
Measure 2 = var _type = MIN('Table (2)'[Type])
var _sp = MIN('Table (2)'[SP])
return
IF((_type = "User Story" || _type = "Bug") && _sp >0 , 1,
IF((_type = "User Story" || _type = "Bug") && _sp = BLANK() , 2,
IF((_type <> "User Story" || _type <> "Bug") ,3,0)))
Please accept as solution if its worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@prabhatnath Creeate measure as per below:
Measure 2 = var _type = MIN('Table (2)'[Type])
var _sp = MIN('Table (2)'[SP])
return
IF((_type = "User Story" || _type = "Bug") && _sp >0 , 1,
IF((_type = "User Story" || _type = "Bug") && _sp = BLANK() , 2,
IF((_type <> "User Story" || _type <> "Bug") ,3,0)))
Please accept as solution if its worked.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
03-28-2024 06:28 AM | |||
03-27-2024 05:20 AM | |||
08-07-2023 10:01 AM | |||
02-15-2024 06:00 AM | |||
12-01-2023 07:15 AM |
User | Count |
---|---|
134 | |
105 | |
87 | |
55 | |
46 |