sql - powerpivot inner join -


i have 1 table:

person name country code andrew      1 philip      2 john        1 daniel      2 

and lookup table:

country code    country name 1               usa 2               uk 

i added them powerpivot, created relationship between country code fields, created pivot table. expect following:

person name country code andrew      usa philip      uk john        usa daniel      uk 

but is:

person name country code andrew      usa andrew      uk philip      usa philip      uk john        usa john        uk daniel      usa daniel      uk 

couple of options:

  1. add column main table uses formula pull in country name lookup table e.g. =related(lookuptable[country name])

  2. if drag in measure references main table desired result e.g. =countrows('maintable') hide results column if had to.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -