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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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