9 Replies Latest reply on Nov 23, 2018 6:50 PM by muhammad muhib

    Custom Shapes

    muhammad muhib

      I have an issue i have to assign countries flag as a shape i have files which i uploaded in tableau rep,

      create a case statement which matches the corresponding 2 character file name ,

      but issue is that when i assign palette it's not matching the files with respect to code rather it assign the shape in an order as it is in the rep folder .

      Case statement:

      CASE [Country Name]

      WHEN  "Afghanistan" THEN      "af"

      WHEN  "Albania" THEN      "al"

      WHEN  "Algeria" THEN      "dz"

      WHEN  "American Samoa" THEN      "as"

      WHEN  "Andorra" THEN      "ad"

      WHEN  "Angola" THEN      "ao"

      WHEN  "Anguilla" THEN      "ai"

      WHEN  "Antarctica" THEN      "aq"

      WHEN  "Antigua and Barbuda" THEN      "ag"

      WHEN  "Argentina" THEN      "ar"

      WHEN  "Armenia" THEN      "am"

      WHEN  "Aruba" THEN      "aw"

      WHEN  "Australia" THEN      "au"

      WHEN  "Austria" THEN      "at"

      WHEN  "Azerbaijan" THEN      "az"

      WHEN  "Bahamas" THEN      "bs"

      WHEN  "Bahrain" THEN      "bh"

      WHEN  "Bangladesh" THEN      "bd"

      WHEN  "Barbados" THEN      "bb"

      WHEN  "Belarus" THEN      "by"

      WHEN  "Belgium" THEN      "be"

      WHEN  "Belize" THEN      "bz"

      WHEN  "Benin" THEN      "bj"

      WHEN  "Bermuda" THEN      "bm"

      WHEN  "Bhutan" THEN      "bt"

      WHEN  "Bolivia (Plurinational State of)" THEN      "bo"

      WHEN  "Bonaire, Sint Eustatius and Saba" THEN      "bq"

      WHEN  "Bosnia and Herzegovina" THEN      "ba"

      WHEN  "Botswana" THEN      "bw"

      WHEN  "Bouvet Island" THEN      "bv"

      WHEN  "Brazil" THEN      "br"

      WHEN  "British Indian Ocean Territory" THEN      "io"

      WHEN  "Brunei Darussalam" THEN      "bn"

      WHEN  "Bulgaria" THEN      "bg"

      WHEN  "Burkina Faso" THEN      "bf"

      WHEN  "Burundi" THEN      "bi"

      WHEN  "Cabo Verde" THEN      "cv"

      WHEN  "Cambodia" THEN      "kh"

      WHEN  "Cameroon" THEN      "cm"

      WHEN  "Canada" THEN      "ca"

      WHEN  "Cayman Islands" THEN      "ky"

      WHEN  "Central African Republic" THEN      "cf"

      WHEN  "Chad" THEN      "td"

      WHEN  "Chile" THEN      "cl"

      WHEN  "China" THEN      "cn"

      WHEN  "Christmas Island" THEN      "cx"

      WHEN  "Cocos (Keeling) Islands" THEN      "cc"

      WHEN  "Colombia" THEN      "co"

      WHEN  "Comoros" THEN      "km"

      WHEN  "Congo" THEN      "cg"

      WHEN  "Congo (Democratic Republic of the)" THEN      "cd"

      WHEN  "Cook Islands" THEN      "ck"

      WHEN  "Costa Rica" THEN      "cr"

       

       

      WHEN  "Croatia" THEN      "hr"

      WHEN  "Cuba" THEN      "cu"

       

       

      WHEN  "Cyprus" THEN      "cy"

      WHEN  "Czechia" THEN      "cz"

      WHEN  "Denmark" THEN      "dk"

      WHEN  "Djibouti" THEN      "dj"

      WHEN  "Dominica" THEN      "dm"

      WHEN  "Dominican Republic" THEN      "do"

      WHEN  "Ecuador" THEN      "ec"

      WHEN  "Egypt" THEN      "eg"

      WHEN  "El Salvador" THEN      "sv"

      WHEN  "Equatorial Guinea" THEN      "gq"

      WHEN  "Eritrea" THEN      "er"

      WHEN  "Estonia" THEN      "ee"

      WHEN  "Eswatini" THEN      "sz"

      WHEN  "Ethiopia" THEN      "et"

      WHEN  "Falkland Islands (Malvinas)" THEN      "fk"

      WHEN  "Faroe Islands" THEN      "fo"

      WHEN  "Fiji" THEN      "fj"

      WHEN  "Finland" THEN      "fi"

      WHEN  "France" THEN      "fr"

      WHEN  "French Guiana" THEN      "gf"

      WHEN  "French Polynesia" THEN      "pf"

      WHEN  "French Southern Territories" THEN      "tf"

      WHEN  "Gabon" THEN      "ga"

      WHEN  "Gambia, The" THEN      "gm"

      WHEN  "Georgia" THEN      "ge"

      WHEN  "Germany" THEN      "de"

      WHEN  "Ghana" THEN      "gh"

      WHEN  "Gibraltar" THEN      "gi"

      WHEN  "Greece" THEN      "gr"

      WHEN  "Greenland" THEN      "gl"

      WHEN  "Grenada" THEN      "gd"

      WHEN  "Guadeloupe" THEN      "gp"

      WHEN  "Guam" THEN      "gu"

      WHEN  "Guatemala" THEN      "gt"

      WHEN  "Guernsey" THEN      "gg"

      WHEN  "Guinea" THEN      "gn"

      WHEN  "Guinea-Bissau" THEN      "gw"

      WHEN  "Guyana" THEN      "gy"

      WHEN  "Haiti" THEN      "ht"

      WHEN  "Heard Island and McDonald Islands" THEN      "hm"

      WHEN  "Holy See" THEN      "va"

      WHEN  "Honduras" THEN      "hn"

      WHEN  "Hong Kong" THEN      "hk"

      WHEN  "Hungary" THEN      "hu"

      WHEN  "Iceland" THEN      "is"

      WHEN  "India" THEN      "in"

      WHEN  "Indonesia" THEN      "id"

      WHEN  "Iran (Islamic Republic of)" THEN      "ir"

      WHEN  "Iraq" THEN      "iq"

      WHEN  "Ireland" THEN      "ie"

      WHEN  "Isle of Man" THEN      "im"

      WHEN  "Israel" THEN      "il"

      WHEN  "Italy" THEN      "it"

      WHEN  "Jamaica" THEN      "jm"

      WHEN  "Japan" THEN      "jp"

      WHEN  "Jersey" THEN      "je"

      WHEN  "Jordan" THEN      "jo"

      WHEN  "Kazakhstan" THEN      "kz"

      WHEN  "Kenya" THEN      "ke"

      WHEN  "Kiribati" THEN      "ki"

      WHEN  "Korea (Democratic People Republic of)" THEN      "kp"

      WHEN  "Korea (Republic of)" THEN      "kr"

      WHEN  "Kuwait" THEN      "kw"

      WHEN  "Kyrgyzstan" THEN      "kg"

      WHEN  "Latvia" THEN      "lv"

      WHEN  "Lebanon" THEN      "lb"

      WHEN  "Lesotho" THEN      "ls"

      WHEN  "Liberia" THEN      "lr"

      WHEN  "Libya" THEN      "ly"

      WHEN  "Liechtenstein" THEN      "li"

      WHEN  "Lithuania" THEN      "lt"

      WHEN  "Luxembourg" THEN      "lu"

      WHEN  "Macao" THEN      "mo"

      WHEN  "Madagascar" THEN      "mg"

      WHEN  "Malawi" THEN      "mw"

      WHEN  "Malaysia" THEN      "my"

      WHEN  "Maldives" THEN      "mv"

      WHEN  "Mali" THEN      "ml"

      WHEN  "Malta" THEN      "mt"

      WHEN  "Marshall Islands" THEN      "mh"

      WHEN  "Martinique" THEN      "mq"

      WHEN  "Mauritania" THEN      "mr"

      WHEN  "Mauritius" THEN      "mu"

      WHEN  "Mayotte" THEN      "yt"

      WHEN  "Mexico" THEN      "mx"

      WHEN  "Monaco" THEN      "mc"

      WHEN  "Mongolia" THEN      "mn"

      WHEN  "Montenegro" THEN      "me"

      WHEN  "Montserrat" THEN      "ms"

      WHEN  "Morocco" THEN      "ma"

      WHEN  "Mozambique" THEN      "mz"

      WHEN  "Myanmar" THEN      "mm"

      WHEN  "Namibia" THEN      "na"

      WHEN  "Nauru" THEN      "nr"

      WHEN  "Nepal" THEN      "np"

      WHEN  "Netherlands" THEN      "nl"

      WHEN  "New Caledonia" THEN      "nc"

      WHEN  "New Zealand" THEN      "nz"

      WHEN  "Nicaragua" THEN      "ni"

      WHEN  "Niger" THEN      "ne"

      WHEN  "Nigeria" THEN      "ng"

      WHEN  "Niue" THEN      "nu"

      WHEN  "Norfolk Island" THEN      "nf"

      WHEN  "Northern Mariana Islands" THEN      "mp"

      WHEN  "Norway" THEN      "no"

      WHEN  "Oman" THEN      "om"

      WHEN  "Pakistan" THEN      "pk"

      WHEN  "Palau" THEN      "pw"

      WHEN  "Palestine, State of" THEN      "ps"

      WHEN  "Panama" THEN      "pa"

      WHEN  "Papua New Guinea" THEN      "pg"

      WHEN  "Paraguay" THEN      "py"

      WHEN  "Peru" THEN      "pe"

      WHEN  "Philippines" THEN      "ph"

      WHEN  "Pitcairn" THEN      "pn"

      WHEN  "Poland" THEN      "pl"

      WHEN  "Portugal" THEN      "pt"

      WHEN  "Puerto Rico" THEN      "pr"

      WHEN  "Qatar" THEN      "qa"

      WHEN  "Runion" THEN      "re"

      WHEN  "Romania" THEN      "ro"

      WHEN  "Russian Federation" THEN      "ru"

      WHEN  "Rwanda" THEN      "rw"

      WHEN  "Saint Helena, Ascension and Tristan da Cunha" THEN      "sh"

      WHEN  "Saint Kitts and Nevis" THEN      "kn"

      WHEN  "Saint Lucia" THEN      "lc"

      WHEN  "Saint Pierre and Miquelon" THEN      "pm"

      WHEN  "Saint Vincent and the Grenadines" THEN      "vc"

      WHEN  "Samoa" THEN      "ws"

      WHEN  "San Marino" THEN      "sm"

      WHEN  "Sao Tome and Principe" THEN      "st"

      WHEN  "Saudi Arabia" THEN      "sa"

      WHEN  "Senegal" THEN      "sn"

      WHEN  "Serbia" THEN      "rs"

      WHEN  "Seychelles" THEN      "sc"

      WHEN  "Sierra Leone" THEN      "sl"

      WHEN  "Singapore" THEN      "sg"

      WHEN  "Sint Maarten Dutch part" THEN      "sx"

      WHEN  "Slovakia" THEN      "sk"

      WHEN  "Slovenia" THEN      "si"

      WHEN  "Solomon Islands" THEN      "sb"

      WHEN  "Somalia" THEN      "so"

      WHEN  "South Africa" THEN      "za"

      WHEN  "South Georgia and the South Sandwich Islands" THEN      "gs"

      WHEN  "South Sudan" THEN      "ss"

      WHEN  "Spain" THEN      "es"

      WHEN  "Sri Lanka" THEN      "lk"

      WHEN  "Sudan" THEN      "sd"

      WHEN  "Suriname" THEN      "sr"

      WHEN  "Svalbard and Jan Mayen" THEN      "sj"

      WHEN  "Sweden" THEN      "se"

      WHEN  "Switzerland" THEN      "ch"

      WHEN  "Syrian Arab Republic" THEN      "sy"

      WHEN  "Taiwan, Province of China" THEN      "tw"

      WHEN  "Tajikistan" THEN      "tj"

      WHEN  "Tanzania, United Republic of" THEN      "tz"

      WHEN  "Thailand" THEN      "th"

      WHEN  "Timor-Leste" THEN      "tl"

      WHEN  "Togo" THEN      "tg"

      WHEN  "Tokelau" THEN      "tk"

      WHEN  "Tonga" THEN      "to"

      WHEN  "Trinidad and Tobago" THEN      "tt"

      WHEN  "Tunisia" THEN      "tn"

      WHEN  "Turkey" THEN      "tr"

      WHEN  "Turkmenistan" THEN      "tm"

      WHEN  "Turks and Caicos Islands" THEN      "tc"

      WHEN  "Tuvalu" THEN      "tv"

      WHEN  "Uganda" THEN      "ug"

      WHEN  "Ukraine" THEN      "ua"

      WHEN  "United Arab Emirates" THEN      "ae"

      WHEN  "United Kingdom" THEN      "gb"

      WHEN  "United States" THEN      "us"

      WHEN  "United States Minor Outlying Islands" THEN      "um"

      WHEN  "Uruguay" THEN      "uy"

      WHEN  "Uzbekistan" THEN      "uz"

      WHEN  "Vanuatu" THEN      "vu"

      WHEN  "Viet Nam" THEN      "vn"

      WHEN  "Wallis and Futuna" THEN      "wf"

      WHEN  "Western Sahara" THEN      "eh"

      WHEN  "Yemen" THEN      "ye"

      WHEN  "Zambia" THEN      "zm"

      WHEN  "Zimbabwe" THEN      "zw"

      ELSE "others"

      END

       

      how to achieve the desired result ,any help?

       

      workbook attached!

        • 1. Re: Custom Shapes
          Don Wise

          Hello Muhammad,

          You attached a .twb file and we would need a packaged workbook with file extension of .twbx to work with your data.  Perhaps this will help:  I brought out your case statement and then alphabetized it to the two-character country code.

           

          CASE [Country Name]

          WHEN Andorra THEN     ad

          WHEN United Arab Emirates THEN     ae

          WHEN Afghanistan THEN     af

          WHEN Antigua and Barbuda THEN     ag

          WHEN Anguilla THEN     ai

          WHEN Albania THEN     al

          WHEN Armenia THEN     am

          WHEN Angola THEN     ao

          WHEN Antarctica THEN     aq

          WHEN Argentina THEN     ar

          WHEN American Samoa THEN     as

          WHEN Austria THEN     at

          WHEN Australia THEN     au

          WHEN Aruba THEN     aw

          WHEN Azerbaijan THEN     az

          WHEN Bosnia and Herzegovina THEN     ba

          WHEN Barbados THEN     bb

          WHEN Bangladesh THEN     bd

          WHEN Belgium THEN     be

          WHEN Burkina Faso THEN     bf

          WHEN Bulgaria THEN     bg

          WHEN Bahrain THEN     bh

          WHEN Burundi THEN     bi

          WHEN Benin THEN     bj

          WHEN Bermuda THEN     bm

          WHEN Brunei Darussalam THEN     bn

          WHEN Bolivia (Plurinational State of) THEN     bo

          WHEN Bonaire, Sint Eustatius and Saba THEN     bq

          WHEN Brazil THEN     br

          WHEN Bahamas THEN     bs

          WHEN Bhutan THEN     bt

          WHEN Bouvet Island THEN     bv

          WHEN Botswana THEN     bw

          WHEN Belarus THEN     by

          WHEN Belize THEN     bz

          WHEN Canada THEN     ca

          WHEN Cocos (Keeling) Islands THEN     cc

          WHEN Congo (Democratic Republic of the) THEN     cd

          WHEN Central African Republic THEN     cf

          WHEN Congo THEN     cg

          WHEN Switzerland THEN     ch

          WHEN Cook Islands THEN     ck

          WHEN Chile THEN     cl

          WHEN Cameroon THEN     cm

          WHEN China THEN     cn

          WHEN Colombia THEN     co

          WHEN Costa Rica THEN     cr

          WHEN Cuba THEN     cu

          WHEN Cabo Verde THEN     cv

          WHEN Christmas Island THEN     cx

          WHEN Cyprus THEN     cy

          WHEN Czechia THEN     cz

          WHEN Germany THEN     de

          WHEN Djibouti THEN     dj

          WHEN Denmark THEN     dk

          WHEN Dominica THEN     dm

          WHEN Dominican Republic THEN     do

          WHEN Algeria THEN     dz

          WHEN Ecuador THEN     ec

          WHEN Estonia THEN     ee

          WHEN Egypt THEN     eg

          WHEN Western Sahara THEN     eh

          WHEN Eritrea THEN     er

          WHEN Spain THEN     es

          WHEN Ethiopia THEN     et

          WHEN Finland THEN     fi

          WHEN Fiji THEN     fj

          WHEN Falkland Islands (Malvinas) THEN     fk

          WHEN Faroe Islands THEN     fo

          WHEN France THEN     fr

          WHEN Gabon THEN     ga

          WHEN United Kingdom THEN     gb

          WHEN Grenada THEN     gd

          WHEN Georgia THEN     ge

          WHEN French Guiana THEN     gf

          WHEN Guernsey THEN     gg

          WHEN Ghana THEN     gh

          WHEN Gibraltar THEN     gi

          WHEN Greenland THEN     gl

          WHEN Gambia, The THEN     gm

          WHEN Guinea THEN     gn

          WHEN Guadeloupe THEN     gp

          WHEN Equatorial Guinea THEN     gq

          WHEN Greece THEN     gr

          WHEN South Georgia and the South Sandwich Islands THEN     gs

          WHEN Guatemala THEN     gt

          WHEN Guam THEN     gu

          WHEN Guinea-Bissau THEN     gw

          WHEN Guyana THEN     gy

          WHEN Hong Kong THEN     hk

          WHEN Heard Island and McDonald Islands THEN     hm

          WHEN Honduras THEN     hn

          WHEN Croatia THEN     hr

          WHEN Haiti THEN     ht

          WHEN Hungary THEN     hu

          WHEN Indonesia THEN     id

          WHEN Ireland THEN     ie

          WHEN Israel THEN     il

          WHEN Isle of Man THEN     im

          WHEN India THEN     in

          WHEN British Indian Ocean Territory THEN     io

          WHEN Iraq THEN     iq

          WHEN Iran (Islamic Republic of) THEN     ir

          WHEN Iceland THEN     is

          WHEN Italy THEN     it

          WHEN Jersey THEN     je

          WHEN Jamaica THEN     jm

          WHEN Jordan THEN     jo

          WHEN Japan THEN     jp

          WHEN Kenya THEN     ke

          WHEN Kyrgyzstan THEN     kg

          WHEN Cambodia THEN     kh

          WHEN Kiribati THEN     ki

          WHEN Comoros THEN     km

          WHEN Saint Kitts and Nevis THEN     kn

          WHEN Korea (Democratic People Republic of) THEN     kp

          WHEN Korea (Republic of) THEN     kr

          WHEN Kuwait THEN     kw

          WHEN Cayman Islands THEN     ky

          WHEN Kazakhstan THEN     kz

          WHEN Lebanon THEN     lb

          WHEN Saint Lucia THEN     lc

          WHEN Liechtenstein THEN     li

          WHEN Sri Lanka THEN     lk

          WHEN Liberia THEN     lr

          WHEN Lesotho THEN     ls

          WHEN Lithuania THEN     lt

          WHEN Luxembourg THEN     lu

          WHEN Latvia THEN     lv

          WHEN Libya THEN     ly

          WHEN Morocco THEN     ma

          WHEN Monaco THEN     mc

          WHEN Montenegro THEN     me

          WHEN Madagascar THEN     mg

          WHEN Marshall Islands THEN     mh

          WHEN Mali THEN     ml

          WHEN Myanmar THEN     mm

          WHEN Mongolia THEN     mn

          WHEN Macao THEN     mo

          WHEN Northern Mariana Islands THEN     mp

          WHEN Martinique THEN     mq

          WHEN Mauritania THEN     mr

          WHEN Montserrat THEN     ms

          WHEN Malta THEN     mt

          WHEN Mauritius THEN     mu

          WHEN Maldives THEN     mv

          WHEN Malawi THEN     mw

          WHEN Mexico THEN     mx

          WHEN Malaysia THEN     my

          WHEN Mozambique THEN     mz

          WHEN Namibia THEN     na

          WHEN New Caledonia THEN     nc

          WHEN Niger THEN     ne

          WHEN Norfolk Island THEN     nf

          WHEN Nigeria THEN     ng

          WHEN Nicaragua THEN     ni

          WHEN Netherlands THEN     nl

          WHEN Norway THEN     no

          WHEN Nepal THEN     np

          WHEN Nauru THEN     nr

          WHEN Niue THEN     nu

          WHEN New Zealand THEN     nz

          WHEN Oman THEN     om

          WHEN Panama THEN     pa

          WHEN Peru THEN     pe

          WHEN French Polynesia THEN     pf

          WHEN Papua New Guinea THEN     pg

          WHEN Philippines THEN     ph

          WHEN Pakistan THEN     pk

          WHEN Poland THEN     pl

          WHEN Saint Pierre and Miquelon THEN     pm

          WHEN Pitcairn THEN     pn

          WHEN Puerto Rico THEN     pr

          WHEN Palestine, State of THEN     ps

          WHEN Portugal THEN     pt

          WHEN Palau THEN     pw

          WHEN Paraguay THEN     py

          WHEN Qatar THEN     qa

          WHEN Runion THEN     re

          WHEN Romania THEN     ro

          WHEN Serbia THEN     rs

          WHEN Russian Federation THEN     ru

          WHEN Rwanda THEN     rw

          WHEN Saudi Arabia THEN     sa

          WHEN Solomon Islands THEN     sb

          WHEN Seychelles THEN     sc

          WHEN Sudan THEN     sd

          WHEN Sweden THEN     se

          WHEN Singapore THEN     sg

          WHEN Saint Helena, Ascension and Tristan da Cunha THEN     sh

          WHEN Slovenia THEN     si

          WHEN Svalbard and Jan Mayen THEN     sj

          WHEN Slovakia THEN     sk

          WHEN Sierra Leone THEN     sl

          WHEN San Marino THEN     sm

          WHEN Senegal THEN     sn

          WHEN Somalia THEN     so

          WHEN Suriname THEN     sr

          WHEN South Sudan THEN     ss

          WHEN Sao Tome and Principe THEN     st

          WHEN El Salvador THEN     sv

          WHEN Sint Maarten Dutch part THEN     sx

          WHEN Syrian Arab Republic THEN     sy

          WHEN Eswatini THEN     sz

          WHEN Turks and Caicos Islands THEN     tc

          WHEN Chad THEN     td

          WHEN French Southern Territories THEN     tf

          WHEN Togo THEN     tg

          WHEN Thailand THEN     th

          WHEN Tajikistan THEN     tj

          WHEN Tokelau THEN     tk

          WHEN Timor-Leste THEN     tl

          WHEN Turkmenistan THEN     tm

          WHEN Tunisia THEN     tn

          WHEN Tonga THEN     to

          WHEN Turkey THEN     tr

          WHEN Trinidad and Tobago THEN     tt

          WHEN Tuvalu THEN     tv

          WHEN Taiwan, Province of China THEN     tw

          WHEN Tanzania, United Republic of THEN     tz

          WHEN Ukraine THEN     ua

          WHEN Uganda THEN     ug

          WHEN United States Minor Outlying Islands THEN     um

          WHEN United States THEN     us

          WHEN Uruguay THEN     uy

          WHEN Uzbekistan THEN     uz

          WHEN Holy See THEN     va

          WHEN Saint Vincent and the Grenadines THEN     vc

          WHEN Viet Nam THEN     vn

          WHEN Vanuatu THEN     vu

          WHEN Wallis and Futuna THEN     wf

          WHEN Samoa THEN     ws

          WHEN Yemen THEN     ye

          WHEN Mayotte THEN     yt

          WHEN South Africa THEN     za

          WHEN Zambia THEN     zm

          WHEN Zimbabwe THEN     zw

          ELSE "others"

          END

          • 2. Re: Custom Shapes
            muhammad muhib

            packaged workbook attached now!

            • 3. Re: Custom Shapes
              muhammad muhib

              tried nothing happened

              • 4. Re: Custom Shapes
                Don Wise

                Hi Muhammad,

                 

                The issue appears to be going back to your Flag Shapes and how they're brought in to your repository folder.  They're not matching up to either Country or Country Code as you've noticed.  In your repository file, is there any matching information Country Name or Country Code other than the flag symbology itself? 

                 

                If no, then the only other way that I can see (other than to revalidate the information in the repository), is click on each shape and then assign the proper flag for that country code. Here's an example of what I mean: https://interworks.com/blog/ccapitula/2015/01/16/tableau-essentials-formatting-tips-custom-shapes 

                 

                Thx, Don

                • 5. Re: Custom Shapes
                  muhammad muhib

                  i was expecting that,second part of your comment

                  • 6. Re: Custom Shapes
                    Don Wise

                    Sorry!

                    • 7. Re: Custom Shapes
                      Binod Naik

                      Hi Muhammad,

                       

                      Can you try this - Rename the Flag Images as 01af.png, 02al.png, 03dz.png,.........if it is in the below order and if you want to show is this view/layout (below table). Then "Reload Shapes" and  "Assign Palette". Refer both the screenshots.

                       

                      After assigning the Palette, tableau will pick up the Shapes for the respective Country in the Order that are laid in the view.

                       

                      Give a try and let me know if it helps.

                       

                      BKN

                       

                        

                      Country NameFlagShape
                      Afghanistanaf01af.png
                      Albaniaal02al.png
                      Algeriadz03dz.png
                      Angolaao04ao.png
                      Antigua and Barbudaag05ag.png
                      Argentinaar06ar.png
                      Armeniaam07am.png
                      Australiaau08au.png
                      Austriaat09at.png
                      Azerbaijanaz10az.png
                      Bahrainbh11bh.png
                      Bangladeshbd12bd.png
                      Barbadosbb13bb.png
                      Belarusby14by.png
                      Belgiumbe15be.png
                      Belizebz16bz.png
                      Beninbj17bj.png
                      Bhutanbt18bt.png
                      Bosnia and Herzegovinaba19ba.png
                      Botswanabw20bw.png
                      Brazilbr21br.png
                      Brunei Darussalambn22bn.png
                      Bulgariabg23bg.png
                      Burkina Fasobf24bf.png
                      Burundibi25bi.png
                      Cabo Verdecv26cv.png
                      Cambodiakh27kh.png
                      Camerooncm28cm.png
                      Canadaca29ca.png
                      Central African Republiccf30cf.png
                      Chadtd31td.png
                      Chilecl32cl.png
                      Chinacn33cn.png
                      Colombiaco34co.png
                      Comoroskm35km.png
                      Costa Ricacr36cr.png
                      Croatiahr37hr.png
                      Cypruscy38cy.png
                      Denmarkdk39dk.png
                      Djiboutidj40dj.png
                      Dominicadm41dm.png
                      Dominican Republicdo42do.png
                      Ecuadorec43ec.png
                      El Salvadorsv44sv.png
                      Equatorial Guineagq45gq.png
                      Eritreaer46er.png
                      Estoniaee47ee.png
                      Eswatinisz48sz.png
                      Ethiopiaet49et.png
                      Fijifj50fj.png
                      Finlandfi51fi.png
                      Francefr52fr.png
                      Gabonga53ga.png
                      Gambia, Thegm54gm.png
                      Georgiage55ge.png
                      Germanyde56de.png
                      Ghanagh57gh.png
                      Greecegr58gr.png
                      Grenadagd59gd.png
                      Guatemalagt60gt.png
                      Guineagn61gn.png
                      Guinea-Bissaugw62gw.png
                      Guyanagy63gy.png
                      Haitiht64ht.png
                      Hondurashn65hn.png
                      Hungaryhu66hu.png
                      Icelandis67is.png
                      Indiain68in.png
                      Indonesiaid69id.png
                      Iraqiq70iq.png
                      Irelandie71ie.png
                      Israelil72il.png
                      Italyit73it.png
                      Jamaicajm74jm.png
                      Japanjp75jp.png
                      Jordanjo76jo.png
                      Kazakhstankz77kz.png
                      Kenyake78ke.png
                      Kiribatiki79ki.png
                      Kuwaitkw80kw.png
                      Latvialv81lv.png
                      Lebanonlb82lb.png
                      Lesothols83ls.png
                      Liberialr84lr.png
                      Libyaly85ly.png
                      Lithuanialt86lt.png
                      Luxembourglu87lu.png
                      Madagascarmg88mg.png
                      Malawimw89mw.png
                      Malaysiamy90my.png
                      Maldivesmv91mv.png
                      Maliml92ml.png
                      Maltamt93mt.png
                      Marshall Islandsmh94mh.png
                      Mauritaniamr95mr.png
                      Mauritiusmu96mu.png
                      Mexicomx97mx.png
                      Mongoliamn98mn.png
                      Montenegrome99me.png
                      Moroccoma100ma.png
                      Mozambiquemz101mz.png
                      Myanmarmm102mm.png
                      Namibiana103na.png
                      Nepalnp104np.png
                      Netherlandsnl105nl.png
                      New Zealandnz106nz.png
                      Nicaraguani107ni.png
                      Nigerne108ne.png
                      Nigeriang109ng.png
                      Norwayno110no.png
                      Omanom111om.png
                      Pakistanpk112pk.png
                      Palaupw113pw.png
                      Panamapa114pa.png
                      Papua New Guineapg115pg.png
                      Paraguaypy116py.png
                      Perupe117pe.png
                      Philippinesph118ph.png
                      Polandpl119pl.png
                      Portugalpt120pt.png
                      Qatarqa121qa.png
                      Romaniaro122ro.png
                      Russian Federationru123ru.png
                      Rwandarw124rw.png
                      Samoaws125ws.png
                      San Marinosm126sm.png
                      Saudi Arabiasa127sa.png
                      Senegalsn128sn.png
                      Serbiars129rs.png
                      Seychellessc130sc.png
                      Sierra Leonesl131sl.png
                      Singaporesg132sg.png
                      Sloveniasi133si.png
                      Solomon Islandssb134sb.png
                      Somaliaso135so.png
                      South Africaza136za.png
                      South Sudanss137ss.png
                      Spaines138es.png
                      Sri Lankalk139lk.png
                      Sudansd140sd.png
                      Surinamesr141sr.png
                      Swedense142se.png
                      Switzerlandch143ch.png
                      Syrian Arab Republicsy144sy.png
                      Tajikistantj145tj.png
                      Thailandth146th.png
                      Timor-Lestetl147tl.png
                      Togotg148tg.png
                      Tongato149to.png
                      Trinidad and Tobagott150tt.png
                      Tunisiatn151tn.png
                      Turkeytr152tr.png
                      Ugandaug153ug.png
                      Ukraineua154ua.png
                      United Arab Emiratesae155ae.png
                      United Kingdomgb156gb.png
                      United Statesus157us.png
                      Uruguayuy158uy.png
                      Uzbekistanuz159uz.png
                      Vanuatuvu160vu.png
                      Zambiazm161zm.png
                      Zimbabwezw162zw.png
                      • 8. Re: Custom Shapes
                        muhammad muhib

                        np ,BTW thanks for your efforts Don Wise

                        • 9. Re: Custom Shapes
                          muhammad muhib

                          it's so laborious  to renaming each file individually