{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/PowerBI-visuals/issues/309","repository_url":"https://api.github.com/repos/Microsoft/PowerBI-visuals","labels_url":"https://api.github.com/repos/Microsoft/PowerBI-visuals/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/PowerBI-visuals/issues/309/comments","events_url":"https://api.github.com/repos/Microsoft/PowerBI-visuals/issues/309/events","html_url":"https://github.com/Microsoft/PowerBI-visuals/issues/309","id":302466741,"number":309,"title":"Unable to map dataViewMappings","user":{"login":"aharris","id":713398,"avatar_url":"https://avatars2.githubusercontent.com/u/713398?v=4","gravatar_id":"","url":"https://api.github.com/users/aharris","html_url":"https://github.com/aharris","followers_url":"https://api.github.com/users/aharris/followers","following_url":"https://api.github.com/users/aharris/following{/other_user}","gists_url":"https://api.github.com/users/aharris/gists{/gist_id}","starred_url":"https://api.github.com/users/aharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharris/subscriptions","organizations_url":"https://api.github.com/users/aharris/orgs","repos_url":"https://api.github.com/users/aharris/repos","events_url":"https://api.github.com/users/aharris/events{/privacy}","received_events_url":"https://api.github.com/users/aharris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-05T21:18:27Z","updated_at":"2018-03-07T16:05:17Z","closed_at":"2018-03-06T06:42:18Z","author_association":"NONE","body":"capabilities.json\r\n\r\n```\r\n{\r\n    \"dataRoles\": [\r\n\r\n        {\r\n            \"displayName\": \"Grouping with\",\r\n            \"name\": \"grouping\",\r\n            \"kind\": \"Grouping\"\r\n        },\r\n        {\r\n            \"displayName\": \"Latitude\",\r\n            \"name\": \"latitude\",\r\n            \"kind\": \"Grouping\"\r\n        },\r\n        {\r\n            \"displayName\": \"Longitude\",\r\n            \"name\": \"longitude\",\r\n            \"kind\": \"Grouping\"\r\n        }\r\n    ],\r\n    \"dataViewMappings\":[\r\n        {\r\n            \"categorical\": {\r\n                \"categories\": {\r\n                    \"for\": { \"in\": \"grouping\" }\r\n                },\r\n                \"values\": {\r\n                    \"group\": {\r\n                        \"by\": \"grouping\",\r\n                        \"select\": [\r\n                            { \"for\": { \"in\": \"latitude\"} },\r\n                            { \"for\": { \"in\": \"longitude\"} }\r\n                        ]\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nVisual Update Options:\r\n```\r\n{\r\n  \"viewport\": {\r\n    \"width\": 998.7164179104477,\r\n    \"height\": 564.9964241293533,\r\n    \"scale\": 0.78515625\r\n  },\r\n  \"dataViews\": [\r\n    {\r\n      \"metadata\": {\r\n        \"columns\": {\r\n          \"0\": {\r\n            \"roles\": {\r\n              \"grouping\": true\r\n            },\r\n            \"type\": {\r\n              \"underlyingType\": 260,\r\n              \"category\": null\r\n            },\r\n            \"format\": \"0\",\r\n            \"displayName\": \"ID\",\r\n            \"queryName\": \"Crimes_-_2001_to_present.ID\",\r\n            \"expr\": {\r\n              \"_kind\": 2,\r\n              \"source\": {\r\n                \"_kind\": 0,\r\n                \"entity\": \"Crimes_-_2001_to_present\"\r\n              },\r\n              \"ref\": \"ID\"\r\n            }\r\n          },\r\n          \"1\": {\r\n            \"roles\": {\r\n              \"latitude\": true\r\n            },\r\n            \"type\": {\r\n              \"underlyingType\": 259,\r\n              \"category\": null\r\n            },\r\n            \"displayName\": \"Latitude\",\r\n            \"queryName\": \"Crimes_-_2001_to_present.Latitude\",\r\n            \"expr\": {\r\n              \"_kind\": 2,\r\n              \"source\": {\r\n                \"_kind\": 0,\r\n                \"entity\": \"Crimes_-_2001_to_present\"\r\n              },\r\n              \"ref\": \"Latitude\"\r\n            }\r\n          },\r\n          \"2\": {\r\n            \"roles\": {\r\n              \"longitude\": true\r\n            },\r\n            \"type\": {\r\n              \"underlyingType\": 259,\r\n              \"category\": null\r\n            },\r\n            \"displayName\": \"Longitude\",\r\n            \"queryName\": \"Crimes_-_2001_to_present.Longitude\",\r\n            \"expr\": {\r\n              \"_kind\": 2,\r\n              \"source\": {\r\n                \"_kind\": 0,\r\n                \"entity\": \"Crimes_-_2001_to_present\"\r\n              },\r\n              \"ref\": \"Longitude\"\r\n            }\r\n          }\r\n        }\r\n      },\r\n      \"categorical\": {\r\n        \"categories\": [\r\n          {\r\n            \"source\": {\r\n              \"roles\": {\r\n                \"grouping\": true\r\n              },\r\n              \"type\": {\r\n                \"underlyingType\": 260,\r\n                \"category\": null\r\n              },\r\n              \"format\": \"0\",\r\n              \"displayName\": \"ID\",\r\n              \"queryName\": \"Crimes_-_2001_to_present.ID\",\r\n              \"expr\": {\r\n                \"_kind\": 2,\r\n                \"source\": {\r\n                  \"_kind\": 0,\r\n                  \"entity\": \"Crimes_-_2001_to_present\"\r\n                },\r\n                \"ref\": \"ID\"\r\n              }\r\n            },\r\n            \"values\": [\r\n              634,\r\n              635,\r\n              ...\r\n            ]\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  ],\r\n  \"viewMode\": 1,\r\n  \"editMode\": 0,\r\n  \"type\": 62\r\n}\r\n```\r\n\r\nYou will notice latitude and longitude are missing. Is this the correct way to use `dataViewMappings`?\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/PowerBI-visuals/issues/comments/371187986","html_url":"https://github.com/Microsoft/PowerBI-visuals/issues/309#issuecomment-371187986","issue_url":"https://api.github.com/repos/Microsoft/PowerBI-visuals/issues/309","id":371187986,"user":{"login":"aharris","id":713398,"avatar_url":"https://avatars2.githubusercontent.com/u/713398?v=4","gravatar_id":"","url":"https://api.github.com/users/aharris","html_url":"https://github.com/aharris","followers_url":"https://api.github.com/users/aharris/followers","following_url":"https://api.github.com/users/aharris/following{/other_user}","gists_url":"https://api.github.com/users/aharris/gists{/gist_id}","starred_url":"https://api.github.com/users/aharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aharris/subscriptions","organizations_url":"https://api.github.com/users/aharris/orgs","repos_url":"https://api.github.com/users/aharris/repos","events_url":"https://api.github.com/users/aharris/events{/privacy}","received_events_url":"https://api.github.com/users/aharris/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T16:05:17Z","updated_at":"2018-03-07T16:05:17Z","author_association":"NONE","body":"@uve Do you have any more direction on this? Should this be reopened? "}}
{"actor":{"display_login":"aharris"}}