Forum Discussion

abeiswinger's avatar
abeiswinger
Helper I
8 years ago

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

    • abeiswinger's avatar
      abeiswinger
      Helper I

      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

    • abeiswinger's avatar
      abeiswinger
      Helper I

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

      Thank you