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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
boostdb
New Member

Adding icons/images to matrix

Hi,

 

Is this possible?

1. First sum of all rows from table to PBI matrix. 

2. Add icons/images to the label and text or only icons/images.

 

PBI.png

1 ACCEPTED SOLUTION
v-zhengdxu-msft
Community Support
Community Support

Hi @boostdb 

 

Please try this:

I create a sample data:

vzhengdxumsft_0-1706771248841.png

Then create a new table with this dax:

 

Table 3 = 
	ADDCOLUMNS(
		VALUES('Table (3)'[Column1]),
		"Icon", SWITCH(
			'Table (3)'[Column1],
			"Col1", UNICHAR(128643) & "Col1",
			"Col2", UNICHAR(128644) & "Col2",
			"Col3", UNICHAR(128645) & "Col3"
		)
	)

 

The next step is to create both relationship between two table:

vzhengdxumsft_1-1706771425376.png

The result is as follow:

vzhengdxumsft_2-1706771504543.png

 

Link of unichar function:

UNICHAR function (DAX) - DAX | Microsoft Learn

The unicode of emoji:

Emoji unicode characters for use on the web (timwhitlock.info)

You need to transform the hex to dec:

vzhengdxumsft_3-1706771737802.png

 

Best Regards,

Zhengdong Xu

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

 

 

 

 

View solution in original post

5 REPLIES 5
v-zhengdxu-msft
Community Support
Community Support

Hi @boostdb 

 

Please try this:

I create a sample data:

vzhengdxumsft_0-1706771248841.png

Then create a new table with this dax:

 

Table 3 = 
	ADDCOLUMNS(
		VALUES('Table (3)'[Column1]),
		"Icon", SWITCH(
			'Table (3)'[Column1],
			"Col1", UNICHAR(128643) & "Col1",
			"Col2", UNICHAR(128644) & "Col2",
			"Col3", UNICHAR(128645) & "Col3"
		)
	)

 

The next step is to create both relationship between two table:

vzhengdxumsft_1-1706771425376.png

The result is as follow:

vzhengdxumsft_2-1706771504543.png

 

Link of unichar function:

UNICHAR function (DAX) - DAX | Microsoft Learn

The unicode of emoji:

Emoji unicode characters for use on the web (timwhitlock.info)

You need to transform the hex to dec:

vzhengdxumsft_3-1706771737802.png

 

Best Regards,

Zhengdong Xu

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

 

 

 

 

Thanks! Is it possible to add img/jpeg/png instead of icon?

@boostdb there is no option I know of to add am image to a standard visual header.
There may be a custom visual that does it.

However, you can display images in a body cell of a visual.
So you could have an image on the top row cells after the heading.

But the user might sort the columns.
Learn how to display images in the body of a visual here
https://www.youtube.com/watch?v=hGKykytzLXs 

You can also add data visual (eg table or graph).

Then add a static image visuals and drag and resize them over the data visual.
Then group the visual together.

 

The users will think that it is one visual, but it is actually a grou of images on top of a data visual.

Learn how to group objcets here

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-visuals

 

Please be polite and quickly click the "accept as solution" button.
Remember we are unpaid volunteers giving you free expert help,
and you may need help again. Thank you. 

speedramps
Community Champion
Community Champion

Try this ...

Click here to download PBIX from OneDrive 

 

How it works

 

Drag the filed to the visula Column well.

Then click on te column well and press the Windows + ; keys 

to display the emoji screen

 

Just to be clear  press the Windows key  and   the Plus key   and    the Semicolon key simultaneously

 

Please click thumbs up and accept as solution buttons

 

speedramps_0-1706714699159.png

 

 

Thanks! Is it possible to add img/jpeg/png instead of icon?

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors