Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Mapping Stores

Hi, I have a file that has store site information that I want to map. I have an issue with how to display these in a map for the following reason.

 

Every store site is a "Test Site" AND that Test Site can also be what is called a "Control Site" that gets compared to a "Test Site"

 

Think of this as a store site (the Test Site) and it's surrounding competitive stores (The Control Sites) around that Test store site.

 

A store site can appear in the Control Store Site column for more than one Test Store Site.

 

Any ideas on how to display this from a map perspective? I do have Lat/Long for each site number is another file. What I want is the ability to select a Test Site and see all the Control Sites for that Test Site with a different coloring for all the Control Sites. I don''t want different colors for each Control Sites. But rather all Test Sites should be 1 color and all Control Sites be another color.

 

Any ideas?

 

Here is my file: 

 

Test SiteControl SiteTest ClusterControl Cluster
2700039270915422
2700039270196823
2700039270084322
2700039270024323
2700039270082223
2700039270859925
2700039270285826
2700039270075525
2700039270337825
2700039270294721
2700039270001425
2700039270160623
2701149270119861
2701149270072062
2701149270375164
2701149270167166
2701149270289362
2701149270183262
2701149270345965
2701149270194662
2701149270162064
2701149270198562
2701149270540166
2701149270342462
2708746270336724
2708746270339522
2708746270190824
2708746274162122
2708746274163122
2708746270156626
2708746270175026
2708746270375326
2708746270347321
2708746270664222
2708746270919122
2708746270163322
2700990270915512
2700990270916512
2700990270128611
2700990270194811
2700990270518711
2700990270885312
2700990274171212
2700990270135611
2700990270131011
2700990270344313
2700990270136515
2700990270664314
2706654270195764
2706654274162662
2706654270163562
2706654270576666
2706654270341964
2706654270339464
2706654270636264
2706654270285466
2706654270175462
2706654270855564
2706654270341564
2706654270918264
2703743270664756
2703743270348756
2703743270374654
2703743270080952
2703743274166952
2703743270666152
2703743270073351
2703743270859354
2703743270180053
2703743270855356
2703743270131756
2703743270349551
2741665274164142
2741665270918944
2741665274163944
2741665270595444
2741665270344442
2741665270877844
2741665274170742
2741665270076141
2741665270161344
2741665270155742
2741665270874742
2741665270860044
  • Anonymous I fixed it like this:

    Promo1 = 
    ADDCOLUMNS(
        UNION(
            SUMMARIZE('Promo',[Test Site],"Control Site",[Test Site],"Test Cluster",MAX('Promo'[Test Cluster]),"Control Cluster",MAX('Promo'[Control Cluster])),
            'Promo'
        ),
        "Legend",IF([Test Site] = [Control Site],"Test","Control")
    )

     

    Updated PBIX is attached below sig.

  • Anonymous Technically it is not. The problem is that the numbers are very close to one another so Power BI is color coding them nearly the same. This is the problem I was referring to. Try this:

    Promo2 = ADDCOLUMNS( UNION( SUMMARIZE('Promo',[Test Site],"Control Site",[Test Site],"Test Cluster",MAX('Promo'[Test Cluster]),"Control Cluster",MAX('Promo'[Control Cluster])), 'Promo' ), "Legend",IF([Test Site] = [Control Site],2^[Test Cluster],2^[Control Cluster]) )

     

21 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Anonymous So that I understand this, for the first row, you want to see all of the other rows (stores) that have a Control Cluster of 2?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Greg_Deckler yes and then for every unique store within the Test Site column.

       

      I was thinking maybe a slicer for Test Site but then that seems like I restrict the overall map a little too much?