{"id":1305,"date":"2023-01-02T11:22:25","date_gmt":"2023-01-02T09:22:25","guid":{"rendered":"https:\/\/www.flip-design.de\/?p=1305"},"modified":"2023-01-02T11:22:25","modified_gmt":"2023-01-02T09:22:25","slug":"dashboards-directquery-and-what-you-should-know-about-refreshing","status":"publish","type":"post","link":"https:\/\/www.flip-design.de\/?p=1305","title":{"rendered":"Dashboards, DirectQuery and what you should know about refreshing"},"content":{"rendered":"\n<p>A colleague said to me, that we can create a live dashboard in Power BI which displays actual data from database. I said NO! This post will show you, what you can do to achieve this goal.<\/p>\n\n\n\n<p>I\u2019ve created a Power BI report which consumes data via DirectQuery from a SQL Database and a Measure for a change detection which make a refresh every five seconds. So, if I add a row to the table, I see the actual number of them very quickly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image.png\"><img decoding=\"async\" loading=\"lazy\" width=\"920\" height=\"490\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image.png\" alt=\"\" class=\"wp-image-1306\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image.png 920w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-768x409.png 768w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/a><\/figure>\n\n\n\n<p>I\u2019ve inserted a new row and aftern5 seconds you \u00a0see the result inside the report. You need for this scenario a Premium capacity or PPU. Next, I\u2019ve created a Dashboard and pinned the card and the whole report page to it. To compare this two possibilities, by pinning a card to the dashboard, you lose the background color. But both visualisations will not refresh when you add new rows. To see them, you must refreesh the dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-1.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"503\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-1.png\" alt=\"\" class=\"wp-image-1307\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-1.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-1-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-1-768x409.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>Interesting is, the card refreshes the data, the embedded report not.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-2.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"503\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-2.png\" alt=\"\" class=\"wp-image-1308\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-2.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-2-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-2-768x409.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>By pressing F5 or waiting several minutes, you get the visuals synchronized.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-3.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"503\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-3.png\" alt=\"\" class=\"wp-image-1309\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-3.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-3-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-3-768x409.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>By adding the dashboard or the report to an APP, you have the same behavior.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-4.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"503\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-4.png\" alt=\"\" class=\"wp-image-1310\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-4.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-4-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-4-768x409.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>One option could be, you built a Power BI Embedded application, another could be, you wait for the possibility from Power BI to do the refresh of a dashboard automatically. But, in my point of view, the users should be using the report\u2026<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-5.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"503\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-5.png\" alt=\"\" class=\"wp-image-1311\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-5.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-5-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2023\/01\/image-5-768x409.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A colleague said to me, that we can create a live dashboard in Power BI which displays actual data from database. I said NO! This post will show you, what you can do to achieve this goal. I\u2019ve created a &hellip; <a href=\"https:\/\/www.flip-design.de\/?p=1305\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/1305"}],"collection":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1305"}],"version-history":[{"count":1,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/1305\/revisions"}],"predecessor-version":[{"id":1312,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/1305\/revisions\/1312"}],"wp:attachment":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}