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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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