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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. 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

 

3 ACCEPTED SOLUTIONS
pcoley
Super User
Super User

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

If I helped solve your problem, mark this post as a solution.
Kudos are Welcome! | AI assisted for clarity of wording. |

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
Super User
Super User

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

If I helped solve your problem, mark this post as a solution.
Kudos are Welcome! | AI assisted for clarity of wording. |
Natarajan_M
Super User
Super User

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.