cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
elseoutzen
Regular Visitor

UNICHAR for country flags in a column

Is it possible to add a colum in a table with a UNICHAR for a country flag ? 

I manged to use url, however flags have diffrent sizes, URL can change etc.

So my idea was to use UNICHAR instead . but I can´t get it working . 

 

Examples:

UNICHAR for Denmark is ; 

Denmark

U+1F1E9 U+1F1F0

&#127465 &#127472

 

UNICHAR for belgium is:

Belgium

U+1F1E7 U+1F1EA

&#127463 &#127466

 

 

Column when using url: 

FLAG = IF('MD '[COUNTRY] = "DK", "http://www.geonames.org/flags/x/dk.gif" ,

IF('MD'[COUNTRY] = "BE", "http://www.geonames.org/flags/x/be.gif" ,
"NA"))
 
Endresult should be : In a  Matrix to show me the country flags in the columns and the measure in the rows - like below with URL 
 
elseoutzen_0-1680086597534.png

 

 
Anyone know how to do the same but with UNICHAR?
 
2 REPLIES 2
lbendlin
Super User
Super User

UNICHAR for Denmark is ; 

Denmark

U+1F1E9 U+1F1F0

&#127465 &#127472

In DAX that is "DK"  albeit in weird font. Not a flag?

get returned "DK" as letters . 

i am searching for a code that will return me a flag icon. (Not a letter )  
do you know how ? 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors