How to add Data Labels to Maps in Power BI! Tips and Tricks

Поділитися
Вставка
  • Опубліковано 27 вер 2024
  • In this video we take a look at a cool trick on how you can add a data label to a map in Power BI! We use a little DAX here to create a calculated column and we use a few functions like CALCULATE, ALLEXCEPT and FORMAT.
    In the video I retrieve the latitude and longitude coordinates for each state from this website: www.latlong.ne...
    You can also check out the blog post of this video and many others on my website at www.MitchellPearson.com
    #MitchellPearson #MitchellSQL #PragmaticWorks

КОМЕНТАРІ • 69

  • @fabiannickfotografie
    @fabiannickfotografie 3 роки тому +14

    How come PBI is still so popular whilst missing such basic features like labeling?! But thanks for the workaround ;)

    • @MitchellPearson
      @MitchellPearson  3 роки тому

      Haha, it's definitely missing a couple of a features that would be nice from the visualization perspective. I love the ease of sharing capabilities through the service, the data modeling and DAX components along with what's possible within the visualization layer. But it's not a perfect product and the Power BI team continues to push out updates to improve the product! :)

  • @sammjay876
    @sammjay876 2 роки тому +1

    I've been using the Tooltips feature to create data labels. So far, they only appear when you hover but it's a much simpler option for someone who may have some difficulty with formulas

  • @padynz9869
    @padynz9869 3 роки тому +1

    Very useful video presented with excellent clarity. Really appreciate your effort.

  • @shoeb1359
    @shoeb1359 3 роки тому +3

    Thanks for the trick but this map is not getting filtered nor interacted with other available dropdown filter

  • @chriscrowe1478
    @chriscrowe1478 2 роки тому

    Awesome thanks! I used this theory to simply add a percentage of sales (ie: '12.6%' only) category label without the bulky state name label/text.

  • @en8648
    @en8648 4 місяці тому

    Woooooooow! Genius! Thank you so much, just what I needed.

  • @abdisetarjamae7004
    @abdisetarjamae7004 4 місяці тому

    Thank you for the useful video. Can data labels be added using either Shape Map or Mapbox in Power BI?

  • @thierrythomas6640
    @thierrythomas6640 3 роки тому +2

    Thank you Mitchell for this very interesting video,
    I have a question about the aggregation.
    In my report, I have a slicer for the transaction type and it works well : it makes the right sum of the values for the chosen type.
    But, when I introduce a slicer date, it doesn't work : in fact, when I have only a value in the values column, it's ok (one value for one month). For example, for France, if I have one transaction type, one month, I have the right value. But, if I select two months, I have two values in the labels (because I have two values in the values column, one by month). It doesn't make the sum of the two values.
    Obviously, if I don't select any month, I have the same problem.
    Any idea to fix it ?
    Thierry

  • @gogax56
    @gogax56 8 місяців тому

    I have a question Mitchell, how do you connect the Sales by State data with slicer (for example: Year slicer)

  • @davidliao7961
    @davidliao7961 Рік тому

    This tip just saves my day!

  • @evanlemay1616
    @evanlemay1616 3 роки тому +1

    Is there a way to do this on a filled map or ArcGIS map? I'm trying to show a data label (that's already a column in my excel) over the middle of a census region (already added lat/long for middle of each census region). I can get this map, and I can separately get a filled map, but can't find a way to do both. This took 5 seconds to do in Tableau not sure why it's not an automatic option in Power BI

  • @perovano88
    @perovano88 2 роки тому +1

    Thank you Mitchell! That's was a very good one!
    By the way, I have a question:
    I created the table, like you did, with the name Geography and the relationship was made with my table.
    Now, I'm tryng to create a filter, with the information that I have in my table, for example, Client Name.
    If I insert the variable Client Name oh the visutal of the map, and select a random client, the filter dosent works.
    Do you know what to do?

  • @dannymiletic8324
    @dannymiletic8324 Рік тому

    great job on this approach

  • @Evycorreia
    @Evycorreia 16 днів тому

    Great!!! It's awesome!! Thanks 🎉

  • @alhadibujang8244
    @alhadibujang8244 Рік тому

    Thank you. I haven't used PowerBI before. May I know, is it possible to do conditional formatting on the data labels on the map. For example, if total sales < 100, the data label colour is red.

  • @cesarallami
    @cesarallami 2 роки тому

    Kindly could you give us other examples for how to show specific data labels in longitude latitude in maps with many ways, because i have just longitude latitude data without location, thank you so much

  • @andreeamorgociu2541
    @andreeamorgociu2541 Рік тому

    Thank you very much! This helped at work 🙂

  • @saminhasan87
    @saminhasan87 2 роки тому

    Hey man, thank you for your awesome tutorial. I need some help for a particular task. Can you please make a tutorial on how to show dot density in bing/google map? For example if New York has 50 shops, I want to show 50 points/dots in map. Can you help me do this?

  • @theresastueber7803
    @theresastueber7803 2 роки тому

    Hi Mitchell - your video was great! Is it possible to do the same to provide for % of Sales versus the SUM of sales. Could you provide a demo if this is possible. Thank you so much

  • @robertjameshernandez
    @robertjameshernandez Місяць тому +1

    Very Clever!!!!! Omg i was racking my brain and could not figure it out. I'm coming from mapping in Tableau which has data labels.

    • @The__Original__Emily
      @The__Original__Emily Місяць тому

      It's honestly so surprising and frustrating that PBI doesnt have this basic function. Like the most basic lol

  • @ruthlammers6441
    @ruthlammers6441 3 роки тому +1

    Hey, Mitch...this is great. Question: How can I do this and allow the user to filter results on the needed date range? Is this possible?

  • @barborasandova4957
    @barborasandova4957 3 роки тому +1

    Hey, thanks for a great video! However, I get an error saying that 'Caluculate is not allowed as part of calculated column DAX expressions on DirectQuery models'. Anybody knows how to solve that?

    • @rvian4
      @rvian4 2 роки тому

      You can't create calculated column if you get data by direct query mode. You'll have to change import mode in your data source configuration

  • @JT13198
    @JT13198 Місяць тому

    Awesome vid thank you

  • @jasonwilliams8393
    @jasonwilliams8393 Рік тому

    This is soooo much easier to do in tableau but thank you so much for saving my bacon.

  • @AppComs_Institute
    @AppComs_Institute 2 роки тому

    Hello MitchellPearson and the PowerBI GIS Community, I bumped into this video here and well if it helps, ArcGIS for PowerBI Map Visual has inbuilt labelling functionality. to access it you go to the more visual option and then add it into powerbi.
    The only requirement for you to work with it in PowerBI is that you need to signup for ArcGIS Online Account to be able to use it. Thank you Family

    • @ankitsaha8896
      @ankitsaha8896 Рік тому

      Hi, can you please show me which option helps to a data label feature in ArcGIS Map ?

  • @lifetouch2017
    @lifetouch2017 Рік тому

    how do we display the state names ?
    I want to display USA map only......With states name displayed on map.
    I have already tried all 3 options….Map, Filled map, Shape map
    And then finally used shape map.
    I have used state as location.
    But It displays state name , only when I Hoover over it. I want it to display permanently.
    I don’t have …
    Data labels option under ....Format Visual -) Visual
    Plz guide.

  • @vabiedward5996
    @vabiedward5996 3 роки тому

    Imagine those country names were products, can I add logos by them? Any idea?

  • @GentilOliveira
    @GentilOliveira 3 роки тому

    Great! Very useful.

  • @sabani96
    @sabani96 3 роки тому

    Great information, i want task in my toolbar of lattitude & longitude there is no average option, how to solve that?

    • @Raidenfelipe07
      @Raidenfelipe07 3 роки тому

      Did u solve this problem? I'm trying to label some data and there is no option to aggregate

  • @MichaelJamesActually
    @MichaelJamesActually 2 роки тому

    What is the trick that makes this work? Is it that you have State names in the column along with the data? Would this still be employable if you had locations defined by lat/long, and not at a city/state/etc. level?

    • @fanzfanzilla
      @fanzfanzilla Рік тому

      I just use this technique to display names. Since we all work remote, we wanted to show the employees on the map to display the names on the dot on the map. So, I calculate lat and long defined as decimal for addresses for each staff member. I dropped the name into location. Its displaying staff's names. I also tried without the lat and long by formatting the location as "city, state: Person Name". Power BI is able to parse this but it displays the label with city, state and name. Which is not desirable.

  • @jesusz1499
    @jesusz1499 Рік тому

    Awesome thanks!

  • @정주연-p7b
    @정주연-p7b 2 роки тому

    Thank you so much

  • @sebavazquez20
    @sebavazquez20 2 роки тому

    Thanks a lot!

  • @kashmirshadows8150
    @kashmirshadows8150 3 роки тому +1

    Awesome

  • @bhargavreddy098
    @bhargavreddy098 3 роки тому

    How to show the result of a measure as label!

  • @simonrodriguez1602
    @simonrodriguez1602 3 роки тому +1

    muchas gracias

  • @lindabond9307
    @lindabond9307 2 роки тому

    This rools - thanks!

  • @ashleywilkins9644
    @ashleywilkins9644 3 роки тому +1

    I am curious, EVERYONE does Sales / Finance related Power BI videos but those of us dealing with medical trends, especially those related to poverty, employment type, education level, access to health care, veteran status, etc...could use some assistance creating measures applicable to our world. For Example, I need a report to show the number of patients who meet certain criteria which is held in 3 separate columns (Diagnosis column must contain either Bipolar or Schizophrenia but there are 26 different codes that equal those two diagnosis. 2) they must have been given one of three blood test, also defined by 12+ codes in a separate column. Third, and in the last column, the patient must have been prescribed one of 20 different psychotropic medications, each represented by a different code. Current solution to show those who are compliant requires building 5 new columns and 3 new measures. Once compliancy is located, THEN I can display on a state map the hot spots for programs not succeeding in meeting the requirements. I'm seeking a more concise resolution. I'm happy to provide a spreadsheet of dummy data if necessary. Thanks for the GREAT training methodology!

    • @charlotteasserson645
      @charlotteasserson645 3 роки тому +1

      Yes please! This is something I need too (but for veterinary-medicine)!

  • @iiiiii-w8h
    @iiiiii-w8h 4 місяці тому

    2:30 to skip the bullshit

  • @tetiana-poklad
    @tetiana-poklad 2 місяці тому

    Hi guys, there is no "average" in the menu. How to fix it?

  • @cristianmadrigal5618
    @cristianmadrigal5618 3 роки тому +1

    Dear Mitchell! Loved the video, it worked out pretty well, and it was so easy to understand and replicate. Thanks.

  • @Carmenelizabethgq
    @Carmenelizabethgq 3 роки тому +1

    Muchas gracias! Lo máximo! :)

  • @michelcesar85
    @michelcesar85 3 роки тому +1

    This is amazing! Very creative solution! Greetings from Brazil!

    • @MitchellPearson
      @MitchellPearson  3 роки тому +1

      Thanks Michel! Glad you liked it and have a great 2021 :)

  • @shubhamkamble4398
    @shubhamkamble4398 11 місяців тому

    Hello, I'm looking for labels as purely numbers only without any country name mentioned in the label.If anyone has a solution for that it'd be really helpful. Thank You.

  • @TungProBoy
    @TungProBoy 2 роки тому

    I found out that if you create the calculated collum as you did and just chuck that into location, Power BI would recognize the location (it works for me). So basically skipping the longitude and latitude part.

  • @hamzamottali3567
    @hamzamottali3567 6 місяців тому

    is there any method to show just the data lables ? i mean just the numerical values without showing the name of the state and showing the datalables at the exact location on the map
    could you help please ?

  • @jessicabramow3094
    @jessicabramow3094 3 роки тому +1

    Thank you so much for this tutorial. I am trying to do something similar, but rather than displaying sales data, I want to display how many occurrences of a situation per state. The only way I know how to get the state count is by using a measure, but there doesn't look like there's a way to display that measure on the map, which is unfortunate.

    • @MitchellPearson
      @MitchellPearson  3 роки тому

      You can do those aggregates in the calculated column, similar to my example where I did a sum on total sales. Because of row context your code may look something like COUNTROWS(RELATEDTABLE('SALES')). Relatedtable will allow you to use the existing relationship to filter down your sales table, then once properly filtered you would be able to count the rows. The biggest problem most people run into with these calculations is the fact that ROW CONTEXT exist and essentially disables those active relationships you have defined in the data model. I did a separate video a while back on ROW CONTEXT which can be very helpful here.
      Of course, the big limitation with Calculated Columns is that it won't be dynamic and react to the filter context in a report like calculated measures! I hope this explanation helps. Thanks!

    • @jessicabramow3094
      @jessicabramow3094 3 роки тому

      @@MitchellPearson Thank you!! Yes, I see what you mean. The label now shows the state count, however, when I adjust the date range, they don't change. Interesting!!! I really wish this label/data feature was native to the program. I know it's possible in Tableau, but we're trying to avoid that route due to budget constraints. I really appreciate your help and I can't wait to watch more of your videos!

    • @mahdimoradi5817
      @mahdimoradi5817 3 роки тому

      @@jessicabramow3094 ​ @MitchellPearson I have the same issue as what Jessica is facing, do you have any suggestions?

  • @timbrykkk
    @timbrykkk 5 місяців тому

    Very well presented! Thank You for the tip!

  • @AmitJediya
    @AmitJediya 2 місяці тому

    Very useful method thank you so much👏👏

  • @fti7282
    @fti7282 2 роки тому

    2022 and still there are no easy way to add labels to a power bi map.

  • @mikedbman
    @mikedbman 7 місяців тому

    This works like a charm. Thanks for the solution!

  • @LuanOlimpio
    @LuanOlimpio Рік тому

    Thanks. You helped me a lot at work

  • @ninittw
    @ninittw 2 роки тому

    Appreciated Mitchell