itsnotaboutthecell

Power Query M - Region, Division, State, Abbreviation

May 5th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. /*
  2. Created By: Alex Powers
  3. Website: http://www.itsnotaboutthecell.com
  4. LinkedIn: https://www.linkedin.com/in/alexmpowers/
  5. */
  6.  
  7. let
  8. Source = #table(
  9. type table [Region = text, Division = text, State = text, Abbreviation = text],
  10. {
  11. {"Midwest","East North Central","Wisconsin","WI"},
  12. {"Midwest","East North Central","Illinois","IL"},
  13. {"Midwest","East North Central","Ohio","OH"},
  14. {"Midwest","East North Central","Indiana","IN"},
  15. {"Midwest","East North Central","Michigan","MI"},
  16. {"Midwest","West North Central","Kansas","KS"},
  17. {"Midwest","West North Central","North Dakota","ND"},
  18. {"Midwest","West North Central","South Dakota","SD"},
  19. {"Midwest","West North Central","Iowa","IA"},
  20. {"Midwest","West North Central","Minnesota","MN"},
  21. {"Midwest","West North Central","Missouri","MO"},
  22. {"Midwest","West North Central","Nebraska","NE"},
  23. {"Northeast","Mid-Atlantic","New York","NY"},
  24. {"Northeast","Mid-Atlantic","Pennsylvania","PA"},
  25. {"Northeast","Mid-Atlantic","New Jersey","NJ"},
  26. {"Northeast","New England","Connecticut","CT"},
  27. {"Northeast","New England","Rhode Island","RI"},
  28. {"Northeast","New England","New Hampshire","NH"},
  29. {"Northeast","New England","Vermont","VT"},
  30. {"Northeast","New England","Maine","ME"},
  31. {"Northeast","New England","Massachusetts","MA"},
  32. {"South","East South Central","Kentucky","KY"},
  33. {"South","East South Central","Alabama","AL"},
  34. {"South","East South Central","Tennessee","TN"},
  35. {"South","East South Central","Mississippi","MS"},
  36. {"South","South Atlantic","Virginia","VA"},
  37. {"South","South Atlantic","District of Columbia","DC"},
  38. {"South","South Atlantic","West Virginia","WV"},
  39. {"South","South Atlantic","North Carolina","NC"},
  40. {"South","South Atlantic","South Carolina","SC"},
  41. {"South","South Atlantic","Maryland","MD"},
  42. {"South","South Atlantic","Delaware","DE"},
  43. {"South","South Atlantic","Florida","FL"},
  44. {"South","South Atlantic","Georgia","GA"},
  45. {"South","West South Central","Texas","TX"},
  46. {"South","West South Central","Oklahoma","OK"},
  47. {"South","West South Central","Louisiana","LA"},
  48. {"South","West South Central","Arkansas","AR"},
  49. {"West","Mountain","New Mexico","NM"},
  50. {"West","Mountain","Nevada","NV"},
  51. {"West","Mountain","Utah","UT"},
  52. {"West","Mountain","Idaho","ID"},
  53. {"West","Mountain","Arizona","AZ"},
  54. {"West","Mountain","Montana","MT"},
  55. {"West","Mountain","Colorado","CO"},
  56. {"West","Mountain","Wyoming","WY"},
  57. {"West","Pacific","Washington","WA"},
  58. {"West","Pacific","Hawaii","HI"},
  59. {"West","Pacific","California","CA"},
  60. {"West","Pacific","Oregon","OR"},
  61. {"West","Pacific","Alaska","AK"}
  62. }
  63. )
  64. in
  65. Source
Advertisement
Add Comment
Please, Sign In to add comment