{"action":"created","issue":{"url":"https://api.github.com/repos/okviz/CardWithStates/issues/1","repository_url":"https://api.github.com/repos/okviz/CardWithStates","labels_url":"https://api.github.com/repos/okviz/CardWithStates/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/okviz/CardWithStates/issues/1/comments","events_url":"https://api.github.com/repos/okviz/CardWithStates/issues/1/events","html_url":"https://github.com/okviz/CardWithStates/issues/1","id":207844885,"number":1,"title":"Variance over target is not calculated properly.","user":{"login":"prasadcool","id":25797541,"avatar_url":"https://avatars0.githubusercontent.com/u/25797541?v=3","gravatar_id":"","url":"https://api.github.com/users/prasadcool","html_url":"https://github.com/prasadcool","followers_url":"https://api.github.com/users/prasadcool/followers","following_url":"https://api.github.com/users/prasadcool/following{/other_user}","gists_url":"https://api.github.com/users/prasadcool/gists{/gist_id}","starred_url":"https://api.github.com/users/prasadcool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prasadcool/subscriptions","organizations_url":"https://api.github.com/users/prasadcool/orgs","repos_url":"https://api.github.com/users/prasadcool/repos","events_url":"https://api.github.com/users/prasadcool/events{/privacy}","received_events_url":"https://api.github.com/users/prasadcool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-15T15:56:38Z","updated_at":"2017-03-03T17:15:09Z","closed_at":null,"body":"Hi @danieleperilli ,\r\nThank you for sharing card with states project on GitHub. I have gone through your code and it is really a nice custom visual for Power BI. But the logic you have used for calculating variance over the target is ((value - target) / value ). I am trying to implement my logic in the source code as ((value - target) / target).\r\nWhen I test my implemented logic in the developer mode of Power BI Pro service it gives me correct output of variance. But when I export the visual as package and import it in to the power bi desktop version it returns me calculated variance value according to ((value - target) / value ). \r\nCan you please suggest me any solution on this.?\r\n\r\n1)Screenshot of Visual test on Power BI Pro Server\r\n![screenshot 14](https://cloud.githubusercontent.com/assets/25797541/22982370/fdcaa5a0-f3c4-11e6-979b-9f2c7cceea2f.png)\r\n2)Screenshot of Visual test on Power BI Desktop\r\n![screenshot 15](https://cloud.githubusercontent.com/assets/25797541/22982371/fdcb8de4-f3c4-11e6-8d39-bae009429e25.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/okviz/CardWithStates/issues/comments/284013457","html_url":"https://github.com/okviz/CardWithStates/issues/1#issuecomment-284013457","issue_url":"https://api.github.com/repos/okviz/CardWithStates/issues/1","id":284013457,"user":{"login":"danieleperilli","id":9072177,"avatar_url":"https://avatars1.githubusercontent.com/u/9072177?v=3","gravatar_id":"","url":"https://api.github.com/users/danieleperilli","html_url":"https://github.com/danieleperilli","followers_url":"https://api.github.com/users/danieleperilli/followers","following_url":"https://api.github.com/users/danieleperilli/following{/other_user}","gists_url":"https://api.github.com/users/danieleperilli/gists{/gist_id}","starred_url":"https://api.github.com/users/danieleperilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieleperilli/subscriptions","organizations_url":"https://api.github.com/users/danieleperilli/orgs","repos_url":"https://api.github.com/users/danieleperilli/repos","events_url":"https://api.github.com/users/danieleperilli/events{/privacy}","received_events_url":"https://api.github.com/users/danieleperilli/received_events","type":"User","site_admin":false},"created_at":"2017-03-03T17:15:09Z","updated_at":"2017-03-03T17:15:09Z","body":"It is a known issue and we will fix it very soon. \r\nYou can’t simply recompile the visual  and use it because Power BI downgrade it to the version in gallery, sorry."}}
{"actor":{"display_login":"danieleperilli"}}