cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
andyspa
Helper I
Helper I

Market share in Map Visualization

Hello everybody,

 

I have the following data.

 

I want to create a Map in Power BI to show on a first level the country, then the town. Legend must show the players and the balls size the indistinct count of sites. All clear until now. However, I wanted to add in the tooltip  the info of the Market share. When I have the "town level" it's correct, when I zoom out at country level it returns completely wrong values. Is there something I can do to make it aggregate those? Perhaps some calculation in the excel source file?

 

Thanks in advance for your help.

 

Regards,

Andrea

 

1 ACCEPTED SOLUTION

Hi, @andyspa 

 

You may try the following measure to see if it helps. 

Measure = 
DIVIDE(
    SUM('Table'[Market Share]),
    CALCULATE(
        SUM('Table'[Market Share]),
        ALLEXCEPT('Table','Table'[Country])
    )
)

 

Result:

b1.png

 

Best Regards

Allan

 

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

8 REPLIES 8
ian_abq
Regular Visitor

Could you to make the file available again?

I'm having trouble making the pie graph inside the maps visualization.

v-alq-msft
Community Support
Community Support

Hi, @andyspa 

 

It seems correct from the visual. Could you please show us the expected result for better understand?

c1.png

 

Best Regards

Allan

 

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

Hello @v-alq-msft ,

 

I want to show the real market share when moving the cursor to the pie slice, not 1830%! Cannot be more than 100%.

 

Thanks.

Andrea

Hi, @andyspa 

 

You may try the following measure to see if it helps. 

Measure = 
DIVIDE(
    SUM('Table'[Market Share]),
    CALCULATE(
        SUM('Table'[Market Share]),
        ALLEXCEPT('Table','Table'[Country])
    )
)

 

Result:

b1.png

 

Best Regards

Allan

 

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

PhilipTreacy
Super User
Super User

HI @andyspa 

Upload the file to OneDrive, Dropbox or similar then share the link to the file here.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thanks Phil, I did already in the original post. Anyhow here you can find it 🙂


Thanks

PhilipTreacy
Super User
Super User

@andyspa 

Please share your data in file format.

An image of what you currently have and what isn't right would also help.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hello @PhilipTreacy,

 

do you know ho can I share the file? I don't have the option here.

 

Cheers,

Andrea

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.