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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply

Table Highlight in Desktop

Hello,

How can I do a highlight like this in table?

ahmedshalabyy12_0-1771974070784.png

 

5 REPLIES 5
srlabhe
Super User
Super User

Try yo use conditional formatting based on a measure

danextian
Super User
Super User

Hi @ahmedshalabyy12 

That uses a dax generated SVG. You can ask AI to generate it for you.

danextian_0-1771989859242.png

Please see the attached pbix

 

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Irwan
Super User
Super User

hello @ahmedshalabyy12 

 

@Natarajan_M is straightforward which you can try it first.

as @pcoley said, this should be possible by using svg.

 

however, this is a workaround if you want to have those customized icon instead of font and background color as explained by @Natarajan_M and without using SVG as explained by @pcoley .

Irwan_0-1771988976665.png

1. put all your customized image icon in a folder (you can do a local folder).

2. import those image to power bi (get data->folder). then define the image which for what condition.

Irwan_1-1771989086277.png

3. transform that image into base64

Irwan_2-1771989131874.png

= Table.AddColumn(#"Removed Other Columns", "Custom", each "data:image/png;base64, " & Binary.ToText([Content], BinaryEncoding.Base64))

4. import to power bi

5. create a calculated column to calculate the base64 code based on your fact table condition and DONT forget to change data category into Image URL.

Irwan_5-1771989286831.png

Image =
MAXX(
    FILTER(
        'IMG',
        'Table'[Promo Tier]='IMG'[Condition]
    ),
    'IMG'[Custom]
)
6. plot into table visual
Irwan_4-1771989249099.png

 

Hope this will help.

Thank you.

pcoley
Responsive Resident
Responsive Resident

@ahmedshalabyy12 
That kind of highlight is done using SVGs.
Please take a look at these YouTube links:
https://www.youtube.com/watch?v=7MoZ7NHBijE
https://www.youtube.com/watch?v=PvwoDKM_dvQ

I hope this helps, if so please mark it as a solution. Kudos are welcome.

Natarajan_M
Resolver II
Resolver II

Hi @ahmedshalabyy12  , We can recreate this using the conditional formatting in power bi .

Sample Data :

Natarajan_M_0-1771980790056.png


Measures : we are going to create a measure to get the currentvalue of the promo and discount and based on the value it will show the background and font color

Measures for Background color :

Promo Tier BG =
SWITCH(
    SELECTEDVALUE(Pricing[Promo Tier]),
    "Flash Sale", "#F8D7DA",
    "Standard", "#FFF3CD",
    "No Promo", "#E2E3E5",
    "#FFFFFF"
)

Status BG =
SWITCH(
    SELECTEDVALUE(Pricing[Status]),
    "Undercut", "#F8D7DA",
    "Competitive", "#D1E7DD",
    "Watch", "#FFF3CD",
    "#FFFFFF"
)

for Font :
Promo Tier Font =
SWITCH(
    SELECTEDVALUE(Pricing[Promo Tier]),
    "Flash Sale", "#842029",
    "Standard", "#856404",
    "No Promo", "#0D6EFD",
    "#000000"
)
Status Font =
SWITCH(
    SELECTEDVALUE(Pricing[Status]),
    "Undercut", "#842029",
    "Competitive", "#0F5132",
    "Watch", "#856404",
    "#000000"
)
Sample Visual :
Natarajan_M_1-1771980940893.png


Thanks 

If this response was helpful in any way, I’d gladly accept a kudo.
Please mark it as the correct solution. It helps other community members find their way faster





Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.