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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
abeiswinger
Helper I
Helper I

Create Measure (SUMIF?) for 2 visuals in 2 different data sources?

I have three datasources: Category, Location, and Data.

Category has products broken down by category

Location has City and City, State

Data has Product Names, How Many Sold, City

 

I have a relationship between the Location (City) and the Data (City) columns... and a relationship between the Category and Data (the Category Column for both).

 

I have a Map visual that has the cities of clients that buy the product and I have a Donut Chart visual with the Category and Quantity Sold... I want to be able to click on a location on the map and have it adjust the Quantity for that specific location.  Instead, it is adjusting the quantity of that location including the other location data as well.... I hope that makes sense.

 

 

If we sold 50% Can Beverages and 50% Bottled Beverages for all locations (17 total)... when I click on one location (Miami), it says we sold 15% Can Beverages and 0% Bottled Beverages (since it's pulling other location data)... I want it to say that Miami has 100% Can Beverages.

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Sample data please (preferrably that can be copy and pasted.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg, is my data given not okay as sample data?  Can it be worked with for a solution?

Thank you

is there a way I can upload a test dashboard?  I thought I remember seeing someone do that before but I don't know how.  

 

if not, here is the data:

DATA:

CityCategoryQuantityDescription
MiamiCan Bev20Diet Coke-12 24 CA
New York CityBottle Bev Carb30TRain Ice Orng Mango 11oz 24ca
DenverBottle Bev Carb40TRain Ice Orng Mango 11oz 24ca
MiamiCan Bev10Diet Dr. Pepper-12 24/CS
DenverBottle Bev Carb15Min. Maid Apple Juice-15.2/24
DallasBottle Bev Carb22Min. Maid Apple Juice-15.2/24
MiamiCan Bev43Fresca Peach-12oz/24Ca
New York CityBottle Bev Carb61TRain Pch Nectarine12oz 24CA
DenverCan Bev40Diet Sprite Zero-12 24/CS
DallasCan Bev6Diet Sprite Zero-12 24/CS

 

 

LOCATION

CityCity, State
MiamiMiami, Florida
New York CityNew York City, New York
DenverDenver, Colorado
DallasDallas, Texas

 

CATEGORY

CategoryDescription
Can BevDiet Coke-12 24 CA
Can BevDiet Dr. Pepper-12 24/CS
Can BevDiet Sprite Zero-12 24/CS
Can BevFresca Peach-12oz/24Ca
Bottle Bev CarbTRain Ice Orng Mango 11oz 24ca
Bottle Bev CarbTRain Pch Nectarine12oz 24CA
Bottle Bev CarbTalking Rain BlkRasp-12 24/cs
Bottle Bev CarbMin. Maid Apple Juice-15.2/24

 

All cities selected in first screenshot... second screenshot is only Miami, but Miami should be 100% can bev

allcities.jpgmiami.jpg

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.