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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply

Table Highlight in Desktop

Hello,

How can I do a highlight like this in table?

ahmedshalabyy12_0-1771974070784.png

 

3 ACCEPTED SOLUTIONS
pcoley
Continued Contributor
Continued Contributor

@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.

Regards, PColey 
I hope this helps.
Please Mark my post as a solution if it helped to resolve your issue.
Kudos are Welcome!
Please do let us know if you have any further queries.

View solution in original post

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.

View solution in original post

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.

View solution in original post

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
Continued Contributor
Continued Contributor

@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.

Regards, PColey 
I hope this helps.
Please Mark my post as a solution if it helped to resolve your issue.
Kudos are Welcome!
Please do let us know if you have any further queries.
Natarajan_M
Solution Sage
Solution Sage

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
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.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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