<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:georss="http://www.georss.org/georss"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
><channel><title>Quick Reference &#8211; DataVeld</title> <atom:link href="http://dataveld.com/category/quick-reference/feed/" rel="self" type="application/rss+xml" /><link>https://dataveld.com</link> <description>A Microsoft Data Experience Blog</description> <lastBuildDate>Tue, 30 Jun 2020 15:32:38 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod> hourly </sy:updatePeriod> <sy:updateFrequency> 1 </sy:updateFrequency> <generator>https://wordpress.org/?v=5.3.23</generator><image> <url>https://i0.wp.com/dataveld.com/wp-content/uploads/2016/10/cropped-cropped-dataveld23.png?fit=32%2C32&#038;ssl=1</url><title>Quick Reference &#8211; DataVeld</title><link>https://dataveld.com</link> <width>32</width> <height>32</height> </image> <site
xmlns="com-wordpress:feed-additions:1">143031883</site> <item><title>Power BI Quick Tip: Use Windows Shortcuts to Open Power BI with a Default File</title><link>https://dataveld.com/2020/02/05/power-bi-quick-tip-use-windows-shortcuts-to-open-power-bi-with-a-default-file/</link> <comments>https://dataveld.com/2020/02/05/power-bi-quick-tip-use-windows-shortcuts-to-open-power-bi-with-a-default-file/#comments</comments> <pubDate>Wed, 05 Feb 2020 13:16:16 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Quick Tip]]></category> <category><![CDATA[Shortcuts]]></category> <category><![CDATA[Templates]]></category><guid
isPermaLink="false">https://dataveld.com/?p=8337</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span> Many organizations deploying Power BI rely on one or more standardized template (.PBIT) files. Especially when paired with a custom theme, templates help create consistency for branding or other reasons. Perhaps you want to open the same PBIT (or PBIX)...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2020/02/05/power-bi-quick-tip-use-windows-shortcuts-to-open-power-bi-with-a-default-file/">Power BI Quick Tip: Use Windows Shortcuts to Open Power BI with a Default File</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span><p>Many organizations deploying Power BI rely on one or more standardized <a
rel="noreferrer noopener" aria-label="template (opens in a new tab)" href="https://docs.microsoft.com/en-us/power-bi/desktop-templates" target="_blank">template</a> (.PBIT) files. Especially when paired with a <a
rel="noreferrer noopener" aria-label="custom theme (opens in a new tab)" href="https://docs.microsoft.com/en-us/power-bi/desktop-report-themes" target="_blank">custom theme</a>, templates help create consistency for branding or other reasons.</p><p>Perhaps you want to open the same PBIT (or PBIX) every time you open Power BI and don&#8217;t want to rely on finding and opening the file directly. Or, perhaps your organization deploys software using a tool such as Microsoft <a
rel="noreferrer noopener" aria-label="Configuration Manager (opens in a new tab)" href="https://docs.microsoft.com/en-us/configmgr/" target="_blank">Configuration Manager</a>, and you want to ensure that report authors start with a consistent experience working from the same template.</p><p>This setup is simple with the use of Windows <strong>shortcuts</strong> that can be conveniently placed wherever you find them useful.</p><p>The following small shortcut modification works easily for the manual installation (non-Store version) of Microsoft Power BI by copying an existing shortcut. It may be a bit trickier to for the Microsoft Store version, but you could try browsing to C:\Users\[User]\AppData\Local\Microsoft\WindowsApps\Microsoft.MicrosoftPowerBIDesktop[random] to create a shortcut for the PBIDesktop.exe you&#8217;ll find there for the Store version.</p><ol><li>Create a <em>copy </em>of an existing Power BI Desktop shortcut like the one you might find on the Windows desktop or taskbar.</li><li>Right-click on the shortcut and select <strong>Properties</strong>.</li><li>Append the path of a PBIT or PBIX file to the end of the <strong>Target</strong>.</li><li>Click <strong>OK</strong> to save the shortcut, and put it to use!</li></ol><p>In the following screenshot, you can see the sample file path after the primary PBIDesktop.exe location (which you should not change). The screenshot shows double quotation marks because there is a space in my file name, but these would not be required if your file path does not contain spaces.</p><figure
class="wp-block-image size-large"><img
data-attachment-id="8339" data-permalink="https://dataveld.com/2020/02/05/power-bi-quick-tip-use-windows-shortcuts-to-open-power-bi-with-a-default-file/power-bi-desktop-shortcut-target/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?fit=952%2C615&amp;ssl=1" data-orig-size="952,615" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Desktop Shortcut Target" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?fit=300%2C194&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?fit=640%2C413&amp;ssl=1" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?w=640&#038;ssl=1" alt="" class="wp-image-8339" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?w=952&amp;ssl=1 952w, https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?resize=300%2C194&amp;ssl=1 300w, https://i2.wp.com/dataveld.com/wp-content/uploads/2020/02/Power-BI-Desktop-Shortcut-Target.png?resize=768%2C496&amp;ssl=1 768w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></figure><p>This post was inspired by a recent question by Tom Martens, co-author of the awesome new book <em><a
href="https://www.amazon.com/Pro-DAX-Power-Intelligence-PowerPivot/dp/1484248961" target="_blank" rel="noreferrer noopener" aria-label="Pro DAX with Power BI (opens in a new tab)">Pro DAX with Power BI</a>.</em></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2020/02/05/power-bi-quick-tip-use-windows-shortcuts-to-open-power-bi-with-a-default-file/">Power BI Quick Tip: Use Windows Shortcuts to Open Power BI with a Default File</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2020/02/05/power-bi-quick-tip-use-windows-shortcuts-to-open-power-bi-with-a-default-file/feed/</wfw:commentRss> <slash:comments>1</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">8337</post-id> </item> <item><title>Data Color Reference for Power BI Themes (as of December 2019)</title><link>https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/</link> <comments>https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/#comments</comments> <pubDate>Tue, 31 Dec 2019 13:06:53 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Color]]></category><guid
isPermaLink="false">https://dataveld.com/?p=8311</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span> Along with an updated Power BI Desktop ribbon, several additional report themes are now available. The Power BI docs provide a great reference to the new options, except they do not include the specific color values for anyone who wants...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/">Data Color Reference for Power BI Themes (as of December 2019)</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span>Along with an updated Power BI Desktop ribbon, several additional report themes are now available. The <a
href="https://docs.microsoft.com/en-us/power-bi/desktop-report-themes" target="_blank" rel="noopener noreferrer">Power BI docs</a> provide a great reference to the new options, except they do not include the specific color values for anyone who wants that level of detail.</p><p>Last year, I compiled a <a
href="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/" target="_blank" rel="noopener noreferrer">hex color reference</a> for the (then eight) built-in themes. Power BI now has a lot more themes from which to choose in addition to easily building your own. It&#8217;s time for an update.</p><p><iframe
width="560" height="315" src="https://www.youtube.com/embed/ZmzSuTZKX8c?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe></p><p>&nbsp;</p><p>The following embedded report shows all theme colors with their sequence. If you want to copy a hex value, right-click on it, then choose <strong>Copy</strong> and <strong>Copy Value</strong>.</p><p><iframe
src="https://app.powerbi.com/view?r=eyJrIjoiMTQ1ZTk0MGEtYjU3ZS00OWQ0LWFkMWMtOTNmMDY3MTIyNDFlIiwidCI6ImFjYzhhYWE1LWYxOTEtNDgyZi05MjFiLWNmNmMzM2E1ODgzMiIsImMiOjF9" width="800" height="600" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p><p>With the earlier updates to my color reference, I had to painstakingly obtain the colors manually. To do this, I used a tool called <a
href="http://instant-eyedropper.com/" target="_blank" rel="noopener noreferrer">Instant Eyedropper</a>. It sits in the system tray, and with a simple click, I get any onscreen color value. My former colleague <a
href="https://twitter.com/SQLJason" target="_blank" rel="noopener noreferrer">Jason Thomas</a> recommended this small app to me years ago when he worked for <a
href="http://www.blue-granite.com/" target="_blank" rel="noopener noreferrer">BlueGranite</a>. It&#8217;s free and easy to use, and I rely on it a lot.</p><p>But I no longer need to obtain Power BI Theme colors manually&#8230; WHAT???</p><p>The December Power BI Desktop update allows users to export theme files. T<span
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal; font-weight: 300;">his is currently a Preview Feature that needs to be enabled in Options and Settings.&nbsp;</span>You are not limited to exporting themes that you define. You can also export the JSON for built-in themes (except Default and Classic). In the Theme area in the View tab, there is a new&nbsp;<strong>Export Current Theme</strong> option.</p><p><img
data-attachment-id="8313" data-permalink="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/power-bi-themes/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?fit=1204%2C1470&amp;ssl=1" data-orig-size="1204,1470" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Themes" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?fit=246%2C300&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?fit=640%2C781&amp;ssl=1" class="alignnone size-full wp-image-8313" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?resize=640%2C781&#038;ssl=1" alt="" width="640" height="781" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?w=1204&amp;ssl=1 1204w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?resize=246%2C300&amp;ssl=1 246w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?resize=768%2C938&amp;ssl=1 768w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Themes.png?resize=839%2C1024&amp;ssl=1 839w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>With this capability, I exported all the theme files. Those files have the detail on the hex colors and sequence for each theme. Did I then simply open up and grab the hex colors manually? No!</p><p>Since Power BI reads JSON, I used the Folder data source and pointed it to the folder where all my theme files resided.</p><p><img
data-attachment-id="8314" data-permalink="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/power-bi-json-in-folder/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?fit=1265%2C767&amp;ssl=1" data-orig-size="1265,767" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI JSON in Folder" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?fit=300%2C182&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?fit=640%2C388&amp;ssl=1" class="alignnone size-full wp-image-8314" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?resize=640%2C388&#038;ssl=1" alt="" width="640" height="388" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?w=1265&amp;ssl=1 1265w, https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?resize=300%2C182&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?resize=768%2C466&amp;ssl=1 768w, https://i1.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-JSON-in-Folder.png?resize=1024%2C621&amp;ssl=1 1024w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>After some transformation, the JSON objects from the file appeared in the Name column. The values that I was after were under&nbsp;<strong>dataColors</strong>, which appear as a&nbsp;<em>List</em>.</p><p><img
data-attachment-id="8315" data-permalink="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/theme-data-colors-in-json/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?fit=1267%2C1152&amp;ssl=1" data-orig-size="1267,1152" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Theme Data Colors in JSON" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?fit=300%2C273&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?fit=640%2C582&amp;ssl=1" class="alignnone size-full wp-image-8315" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?resize=640%2C582&#038;ssl=1" alt="" width="640" height="582" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?w=1267&amp;ssl=1 1267w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?resize=300%2C273&amp;ssl=1 300w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?resize=768%2C698&amp;ssl=1 768w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Data-Colors-in-JSON.png?resize=1024%2C931&amp;ssl=1 1024w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>I couldn&#8217;t simply filter down to dataColors and then expand the list to a table of records though. A key part of this effort is to preserve the color sequence. Expanding the list and then loading the data as-is would not allow me to sort properly, so I needed an index along with the color values. Power BI has the ability to add an index easily for all records in a table, but I needed the index to <em>reset</em> for every theme. Here is where some valuable work from <a
href="https://twitter.com/kpuls" target="_blank" rel="noopener noreferrer">Ken Puls</a> came in with his guidance to <a
href="https://www.excelguru.ca/blog/2018/06/27/number-rows-by-group-using-power-query/" target="_blank" rel="noopener noreferrer">number rows by group</a>. Note in the following screenshot how the Index resets with the next theme once the values are expanded.</p><p><img
data-attachment-id="8316" data-permalink="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/theme-sequence/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?fit=1272%2C1072&amp;ssl=1" data-orig-size="1272,1072" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Theme Sequence" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?fit=300%2C253&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?fit=640%2C539&amp;ssl=1" class="alignnone size-full wp-image-8316" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?resize=640%2C539&#038;ssl=1" alt="" width="640" height="539" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?w=1272&amp;ssl=1 1272w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?resize=300%2C253&amp;ssl=1 300w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?resize=768%2C647&amp;ssl=1 768w, https://i2.wp.com/dataveld.com/wp-content/uploads/2019/12/Theme-Sequence.png?resize=1024%2C863&amp;ssl=1 1024w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>From here, I only needed to do some filtering and basic cleanup. Each theme contains 32 colors with only the first eight visibly represented in Power BI. For my reference, I filtered down to eight as well.</p><p>With the resulting table of data, I dropped the colors into a Matrix visual and added&nbsp;<em>two</em> sets of conditional formatting:</p><ul><li><strong>Background Color&nbsp;</strong>is the obvious one with the color set to the field value.</li><li><strong>Font Color</strong> is also conditionally formatted. If you look at some of the matrix text, you&#8217;ll notice that some fonts are black while most are white. In this case, <a
href="https://twitter.com/DMaslyuk" target="_blank" rel="noopener noreferrer">Daniil Maslyuk</a> provided the measure necessary to <a
href="https://xxlbi.com/blog/choosing-font-color-based-on-background-color-in-power-bi/" target="_blank" rel="noopener noreferrer">dynamically select the font color</a> based on the background color. This provides contrast so that the font and background do not blend too much.</li></ul><p>Thanks to both Ken and Daniil for their indirect contributions to this now-data-driven effort. I hope that some people continue to find this level of detail useful.</p><p>Here is a static image to save if needed.</p><p><img
data-attachment-id="8319" data-permalink="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/power-bi-theme-color-reference/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?fit=2044%2C1475&amp;ssl=1" data-orig-size="2044,1475" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Theme Color Reference" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?fit=300%2C216&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?fit=640%2C462&amp;ssl=1" class="alignnone size-full wp-image-8319" src="https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?resize=640%2C462&#038;ssl=1" alt="" width="640" height="462" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?w=2044&amp;ssl=1 2044w, https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?resize=300%2C216&amp;ssl=1 300w, https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?resize=768%2C554&amp;ssl=1 768w, https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?resize=1024%2C739&amp;ssl=1 1024w, https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?w=1280&amp;ssl=1 1280w, https://i0.wp.com/dataveld.com/wp-content/uploads/2019/12/Power-BI-Theme-Color-Reference.png?w=1920&amp;ssl=1 1920w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/">Data Color Reference for Power BI Themes (as of December 2019)</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">8311</post-id> </item> <item><title>Data Color Reference for Power BI Themes</title><link>https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/</link> <comments>https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/#comments</comments> <pubDate>Sat, 20 Oct 2018 13:10:24 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Themes]]></category><guid
isPermaLink="false">https://dataveld.com/?p=7639</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span> UPDATED 12/31/2019: As of December 2019, Power BI includes a new ribbon and many more themes. I&#8217;ve updated the color reference in this post:&#160;Data Color Reference for Power BI Themes (as of December 2019)https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/ &#160; LEGACY: Power BI now includes...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/">Data Color Reference for Power BI Themes</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span><p>UPDATED 12/31/2019:</p><p>As of December 2019, Power BI includes a new ribbon and many more themes. I&#8217;ve updated the color reference in this post:&nbsp;<strong><a
href="https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/" target="_blank" rel="noopener noreferrer">Data Color Reference for Power BI Themes (as of December 2019)</a></strong><br>https://dataveld.com/2019/12/31/data-color-reference-for-power-bi-themes-as-of-december-2019/</p><p><iframe
width="560" height="315" src="https://www.youtube.com/embed/ZmzSuTZKX8c?controls=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen=""></iframe>&nbsp;</p><p>LEGACY:</p><p>Power BI now includes <a
href="https://docs.microsoft.com/en-us/power-bi/desktop-report-themes">eight built-in themes</a> in addition to the countless JSON variations that you could import. If you are interested in the hex color values in order to use them in Power BI or elsewhere, here is a basic quick reference to the built-in themes. I&#8217;ve only included the initial eight colors in each theme. As I discussed in my <a
href="https://dataveld.com/2016/02/13/microsoft-power-bi-color-reference/">original Color Reference</a> post on the default theme, themes start to vary after a certain amount of colors but in a different shade or tint. Many of the built-in themes start to repeat after eight base colors while some repeat after ten. I may revisit this guide later to be more precise with themes that include more than eight colors, but for now, here are the primary eight data colors for each.</p> <figure
id="attachment_7640" aria-describedby="caption-attachment-7640" style="width: 164px" class="wp-caption alignnone"><img
data-attachment-id="7640" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/themes/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Themes.png?fit=184%2C337&amp;ssl=1" data-orig-size="184,337" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Themes" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Themes.png?fit=164%2C300&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Themes.png?fit=184%2C337&amp;ssl=1" class="size-medium wp-image-7640" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Themes.png?resize=164%2C300&#038;ssl=1" alt="" width="164" height="300" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Themes.png?resize=164%2C300&amp;ssl=1 164w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Themes.png?w=184&amp;ssl=1 184w" sizes="(max-width: 164px) 100vw, 164px" data-recalc-dims="1" /><figcaption
id="caption-attachment-7640" class="wp-caption-text">Power BI Themes</figcaption></figure><p><script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br><br><ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br><script>/*<![CDATA[*/<br/>(adsbygoogle=window.adsbygoogle||[]).push({});<br/>/*]]>*/</script></p><h2>Power BI Themes &#8211; Primary Data Color Reference</h2><table
style="width: 100%;"><tbody><tr><th>Theme Name</th><th>Position 1</th><th>Position 2</th><th>Position 3</th><th>Position 4</th><th>Position 5</th><th>Position 6</th><th>Position 7</th><th>Position 8</th></tr><tr><td
style="text-align: center;">Default</td><td
style="background-color: #01b8aa;">&nbsp;</td><td
style="background-color: #374649;">&nbsp;</td><td
style="background-color: #fd625e;">&nbsp;</td><td
style="background-color: #f2c80f;">&nbsp;</td><td
style="background-color: #5f6b6d;">&nbsp;</td><td
style="background-color: #8ad4eb;">&nbsp;</td><td
style="background-color: #fe9666;">&nbsp;</td><td
style="background-color: #a66999;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#01B8AA</td><td
style="text-align: center;">#374649</td><td
style="text-align: center;">#FD625E</td><td
style="text-align: center;">#F2C80F</td><td
style="text-align: center;">#5F6B6D</td><td
style="text-align: center;">#8AD4EB</td><td
style="text-align: center;">#FE9666</td><td
style="text-align: center;">#A66999</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">City Park</td><td
style="background-color: #73b761;">&nbsp;</td><td
style="background-color: #4a588a;">&nbsp;</td><td
style="background-color: #ecc846;">&nbsp;</td><td
style="background-color: #cd4c46;">&nbsp;</td><td
style="background-color: #71afe2;">&nbsp;</td><td
style="background-color: #8d6fd1;">&nbsp;</td><td
style="background-color: #ee9e64;">&nbsp;</td><td
style="background-color: #95dabb;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#73B761</td><td
style="text-align: center;">#4A588A</td><td
style="text-align: center;">#ECC846</td><td
style="text-align: center;">#CD4C46</td><td
style="text-align: center;">#71AFE2</td><td
style="text-align: center;">#8D6FD1</td><td
style="text-align: center;">#EE9E64</td><td
style="text-align: center;">#95DABB</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">Classroom</td><td
style="background-color: #4a8ddc;">&nbsp;</td><td
style="background-color: #4c5d8a;">&nbsp;</td><td
style="background-color: #f3c911;">&nbsp;</td><td
style="background-color: #dc5b57;">&nbsp;</td><td
style="background-color: #33ae81;">&nbsp;</td><td
style="background-color: #95c8f0;">&nbsp;</td><td
style="background-color: #dd915f;">&nbsp;</td><td
style="background-color: #9a64a0;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#4A8DDC</td><td
style="text-align: center;">#4C5D8A</td><td
style="text-align: center;">#F3C911</td><td
style="text-align: center;">#DC5B57</td><td
style="text-align: center;">#33AE81</td><td
style="text-align: center;">#95C8F0</td><td
style="text-align: center;">#DD915F</td><td
style="text-align: center;">#9A64A0</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">Colorblind Safe</td><td
style="background-color: #074650;">&nbsp;</td><td
style="background-color: #009292;">&nbsp;</td><td
style="background-color: #fe6db6;">&nbsp;</td><td
style="background-color: #feb5da;">&nbsp;</td><td
style="background-color: #480091;">&nbsp;</td><td
style="background-color: #b66dff;">&nbsp;</td><td
style="background-color: #b5dafe;">&nbsp;</td><td
style="background-color: #6db6ff;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#074650</td><td
style="text-align: center;">#009292</td><td
style="text-align: center;">#FE6DB6</td><td
style="text-align: center;">#FEB5DA</td><td
style="text-align: center;">#480091</td><td
style="text-align: center;">#B66DFF</td><td
style="text-align: center;">#B5DAFE</td><td
style="text-align: center;">#6DB6FF</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">Electric</td><td
style="background-color: #118dff;">&nbsp;</td><td
style="background-color: #750985;">&nbsp;</td><td
style="background-color: #c83d95;">&nbsp;</td><td
style="background-color: #ff985e;">&nbsp;</td><td
style="background-color: #1dd5ee;">&nbsp;</td><td
style="background-color: #42f7c0;">&nbsp;</td><td
style="background-color: #3049ad;">&nbsp;</td><td
style="background-color: #f64f5c;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#118DFF</td><td
style="text-align: center;">#750985</td><td
style="text-align: center;">#C83D95</td><td
style="text-align: center;">#FF985E</td><td
style="text-align: center;">#1DD5EE</td><td
style="text-align: center;">#42F7C0</td><td
style="text-align: center;">#3049AD</td><td
style="text-align: center;">#F64F5C</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">High Contrast</td><td
style="background-color: #107c10;">&nbsp;</td><td
style="background-color: #002050;">&nbsp;</td><td
style="background-color: #a80000;">&nbsp;</td><td
style="background-color: #5c2d91;">&nbsp;</td><td
style="background-color: #004b50;">&nbsp;</td><td
style="background-color: #0078d7;">&nbsp;</td><td
style="background-color: #d83b01;">&nbsp;</td><td
style="background-color: #b4009e;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#107C10</td><td
style="text-align: center;">#002050</td><td
style="text-align: center;">#A80000</td><td
style="text-align: center;">#5C2D91</td><td
style="text-align: center;">#004B50</td><td
style="text-align: center;">#0078D7</td><td
style="text-align: center;">#D83B01</td><td
style="text-align: center;">#B4009E</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">Sunset</td><td
style="background-color: #b6b0ff;">&nbsp;</td><td
style="background-color: #3049ad;">&nbsp;</td><td
style="background-color: #ff994e;">&nbsp;</td><td
style="background-color: #c83d95;">&nbsp;</td><td
style="background-color: #ffbbed;">&nbsp;</td><td
style="background-color: #42f9f9;">&nbsp;</td><td
style="background-color: #00b2d9;">&nbsp;</td><td
style="background-color: #ffd86c;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#B6B0FF</td><td
style="text-align: center;">#3049AD</td><td
style="text-align: center;">#FF994E</td><td
style="text-align: center;">#C83D95</td><td
style="text-align: center;">#FFBBED</td><td
style="text-align: center;">#42F9F9</td><td
style="text-align: center;">#00B2D9</td><td
style="text-align: center;">#FFD86C</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td
style="text-align: center;">Twilight</td><td
style="background-color: #f17925;">&nbsp;</td><td
style="background-color: #004753;">&nbsp;</td><td
style="background-color: #ccaa14;">&nbsp;</td><td
style="background-color: #4b4c4e;">&nbsp;</td><td
style="background-color: #d82c20;">&nbsp;</td><td
style="background-color: #a3d0d4;">&nbsp;</td><td
style="background-color: #536f18;">&nbsp;</td><td
style="background-color: #46abb0;">&nbsp;</td></tr><tr><td
style="text-align: center;">&nbsp;</td><td
style="text-align: center;">#F17925</td><td
style="text-align: center;">#004753</td><td
style="text-align: center;">#CCAA14</td><td
style="text-align: center;">#4B4C4E</td><td
style="text-align: center;">#D82C20</td><td
style="text-align: center;">#A3D0D4</td><td
style="text-align: center;">#536F18</td><td
style="text-align: center;">#46ABB0</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table><p><strong>City Park</strong></p><p><img
data-attachment-id="7642" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-city-park-theme/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?fit=1354%2C829&amp;ssl=1" data-orig-size="1354,829" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI City Park Theme" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?fit=640%2C392&amp;ssl=1" class="alignnone wp-image-7642 size-large" src="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?resize=640%2C392&#038;ssl=1" alt="" width="640" height="392" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?resize=1024%2C627&amp;ssl=1 1024w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?resize=300%2C184&amp;ssl=1 300w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?resize=768%2C470&amp;ssl=1 768w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?w=1354&amp;ssl=1 1354w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-City-Park-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p><strong>Classroom</strong></p><p><img
data-attachment-id="7643" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-classroom-theme/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?fit=1354%2C832&amp;ssl=1" data-orig-size="1354,832" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Classroom Theme" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?fit=640%2C393&amp;ssl=1" class="alignnone wp-image-7643 size-large" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?resize=640%2C393&#038;ssl=1" alt="" width="640" height="393" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?resize=1024%2C629&amp;ssl=1 1024w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?resize=300%2C184&amp;ssl=1 300w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?resize=768%2C472&amp;ssl=1 768w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?w=1354&amp;ssl=1 1354w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Classroom-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p><strong>Colorblind Safe</strong></p><p><img
data-attachment-id="7644" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-colorblind-safe-theme/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?fit=1354%2C831&amp;ssl=1" data-orig-size="1354,831" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Colorblind Safe Theme" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?fit=640%2C393&amp;ssl=1" class="alignnone wp-image-7644 size-large" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?resize=640%2C392&#038;ssl=1" alt="" width="640" height="392" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?resize=1024%2C628&amp;ssl=1 1024w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?resize=300%2C184&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?resize=768%2C471&amp;ssl=1 768w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?w=1354&amp;ssl=1 1354w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Colorblind-Safe-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p><strong>Electric</strong></p><p><img
data-attachment-id="7645" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-electric-theme/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?fit=1352%2C833&amp;ssl=1" data-orig-size="1352,833" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Electric Theme" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?fit=300%2C185&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?fit=640%2C394&amp;ssl=1" class="alignnone wp-image-7645 size-large" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?resize=640%2C394&#038;ssl=1" alt="" width="640" height="394" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?resize=1024%2C631&amp;ssl=1 1024w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?resize=300%2C185&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?resize=768%2C473&amp;ssl=1 768w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?w=1352&amp;ssl=1 1352w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Electric-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p><strong>High Contrast</strong></p><p><img
data-attachment-id="7646" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-high-contrast-theme/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?fit=1360%2C830&amp;ssl=1" data-orig-size="1360,830" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI High Contrast Theme" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?fit=300%2C183&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?fit=640%2C391&amp;ssl=1" class="alignnone wp-image-7646 size-large" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?resize=640%2C390&#038;ssl=1" alt="" width="640" height="390" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?resize=1024%2C625&amp;ssl=1 1024w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?resize=300%2C183&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?resize=768%2C469&amp;ssl=1 768w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?w=1360&amp;ssl=1 1360w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-High-Contrast-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p><strong>Sunset</strong></p><p><img
data-attachment-id="7647" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-sunset-theme/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?fit=1357%2C833&amp;ssl=1" data-orig-size="1357,833" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Sunset Theme" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?fit=640%2C393&amp;ssl=1" class="alignnone wp-image-7647 size-large" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?resize=640%2C393&#038;ssl=1" alt="" width="640" height="393" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?resize=1024%2C629&amp;ssl=1 1024w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?resize=300%2C184&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?resize=768%2C471&amp;ssl=1 768w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?w=1357&amp;ssl=1 1357w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Sunset-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p><strong>Twilight</strong></p><p><img
data-attachment-id="7648" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-twilight-theme/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?fit=1356%2C830&amp;ssl=1" data-orig-size="1356,830" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Twilight Theme" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?fit=640%2C392&amp;ssl=1" class="alignnone wp-image-7648 size-large" src="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?resize=640%2C392&#038;ssl=1" alt="" width="640" height="392" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?resize=1024%2C627&amp;ssl=1 1024w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?resize=300%2C184&amp;ssl=1 300w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?resize=768%2C470&amp;ssl=1 768w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?w=1356&amp;ssl=1 1356w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Twilight-Theme.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>&nbsp;</p><p><script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br><br><ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br><script>/*<![CDATA[*/<br/>(adsbygoogle=window.adsbygoogle||[]).push({});<br/>/*]]>*/</script></p><p><strong>UPDATE 26 October 2018:</strong>&nbsp;I submitted a pull request with an abbreviated version of this table to the Power BI docs site. It is now live in the <a
href="https://docs.microsoft.com/en-us/power-bi/desktop-report-themes">Report Theme documentation</a>!</p><p><img
data-attachment-id="7653" data-permalink="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/power-bi-report-theme-color-table/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?fit=881%2C521&amp;ssl=1" data-orig-size="881,521" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Power BI Report Theme Color Table" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?fit=300%2C177&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?fit=640%2C378&amp;ssl=1" class="alignnone wp-image-7653 size-full" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?resize=640%2C378&#038;ssl=1" alt="" width="640" height="378" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?w=881&amp;ssl=1 881w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?resize=300%2C177&amp;ssl=1 300w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/10/Power-BI-Report-Theme-Color-Table.png?resize=768%2C454&amp;ssl=1 768w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>&nbsp;</p><p>[embedyt] https://www.youtube.com/playlist?list=PLyWe5-Lx84g1JrDY6Zh_dfV2oO-Cy3frl&amp;layout=gallery[/embedyt]</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/">Data Color Reference for Power BI Themes</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2018/10/20/data-color-reference-for-power-bi-themes/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">7639</post-id> </item> <item><title>Caveats when Invoking Web Requests with PowerShell in Azure Automation</title><link>https://dataveld.com/2018/10/17/caveats-when-invoking-web-requests-with-powershell-in-azure-automation/</link> <comments>https://dataveld.com/2018/10/17/caveats-when-invoking-web-requests-with-powershell-in-azure-automation/#comments</comments> <pubDate>Wed, 17 Oct 2018 22:16:48 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Azure]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Azure Automation]]></category> <category><![CDATA[PowerShell]]></category><guid
isPermaLink="false">https://dataveld.com/?p=7636</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span> What are some considerations when adapting a locally run PowerShell script that invokes web requests to Azure Automation? This post qualifies as one where I want to document steps for my own benefit after I forget in a few weeks,...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/10/17/caveats-when-invoking-web-requests-with-powershell-in-azure-automation/">Caveats when Invoking Web Requests with PowerShell in Azure Automation</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span>What are some considerations when adapting a locally run PowerShell script that invokes web requests to Azure Automation? This post qualifies as one where I want to document steps for my own benefit after I forget in a few weeks, but it&#8217;s even better if anyone happens to be doing something similar and benefits as well.</p><p>I&#8217;ve recently been working with my <a
href="https://www.blue-granite.com">BlueGranite</a> colleague and Microsoft MVP <a
href="https://www.sqlchick.com">Melissa Coates</a> on getting data from the Office 365 Management API. The specific use case is to obtain Power BI&#8217;s audit logs, which are available as <a
href="https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference">RecordType 20 under Audit.General</a>. While this post will not go into detail on the exact solution or share that code, the basics originated from this Microsoft repository: https://github.com/OfficeDev/O365-InvestigationTooling</p><p>The focus here is to document two specific steps for adapting a locally executed PowerShell script for an Azure Automation runbook. In addition to standard work in Automation to add credentials/connections and create parameters where needed, the following changes were required to adapt a local script for my runbook.</p><p><strong>1) Add -UseBasicParsing to Web Requests</strong></p><p>The Management API script is filled with various requests using <a
href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-webrequest">Invoke-WebRequest</a>. Initially, I received numerous errors stating that the Internet Explorer engine is not available.</p><pre data-bind="text: jobStreamText">Invoke-WebRequest : The response content cannot be parsed because the Internet Explorer engine is not available, or 
Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again. 
At line:46 char:9
+ $subs = Invoke-WebRequest -Headers $headerParams -Uri "https://manage ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotImplemented: (:) [Invoke-WebRequest], NotSupportedException
    + FullyQualifiedErrorId : WebCmdletIEDomNotSupportedException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand</pre><p>To overcome this, I needed to add the parameter UseBasicParsing. In PowerShell 6, this should no longer be necessary. Since Automation currently runs 5.1.15063.726 though, it is. Locally, this parameter is not needed even running PS version 5.x.</p><p><em>Original:</em> $oauth = Invoke-RestMethod -Method Post -Uri $loginURL/$tenantdomain/oauth2/token?api-version=1.0 -Body $body</p><p><em>Adapted: </em><span
style="font-size: 13px;">$oauth = Invoke-RestMethod -Method Post -Uri $loginURL/$tenantdomain/oauth2/token?api-version=1.0 -Body $body –UseBasicParsing</span></p><p><strong>2) Alter $ProgressPreference</strong></p><p>PowerShell shows progress using $ProgressPreference, which defaults to &#8220;continue&#8221;. For Automation, I needed to change the option to &#8220;silently continue&#8221; and suppress progress bars. Locally, the progress can be convenient to see, but it was causing issues with Automation.</p><div><div><em>Adapted:</em> $ProgressPreference = &#8220;silentlyContinue&#8221;</div><div></div></div><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/10/17/caveats-when-invoking-web-requests-with-powershell-in-azure-automation/">Caveats when Invoking Web Requests with PowerShell in Azure Automation</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2018/10/17/caveats-when-invoking-web-requests-with-powershell-in-azure-automation/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">7636</post-id> </item> <item><title>Custom Web Fonts and Icons in Power BI</title><link>https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/</link> <comments>https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/#comments</comments> <pubDate>Tue, 19 Jun 2018 00:31:46 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Fonts]]></category> <category><![CDATA[HTML Viewer]]></category><guid
isPermaLink="false">https://dataveld.com/?p=7547</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span> A past post discussed different fonts available for use in Power BI, and I have also showed how to try to expand your font selection with Themes. What if users want more variety? It&#8217;s possible to add additional custom fonts...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/">Custom Web Fonts and Icons in Power BI</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span>A past post discussed <a
href="https://dataveld.com/2018/01/02/font-families-in-power-bi/">different fonts</a> available for use in Power BI, and I have also showed how to try to <a
href="https://dataveld.com/2018/01/05/control-and-expand-your-power-bi-font-selection-with-themes/">expand your font selection</a> with Themes. What if users want more variety? It&#8217;s possible to add additional custom fonts using the powerful <a
href="https://dataveld.com/?s=%22html+viewer%22">HTML Viewer custom visual</a>. You might take advantage of this method for a more versatile textbox by adding almost any styling you want, including free fonts or icons hosted on the web.</p><p>In the following example, I show you how to add custom <a
href="https://fonts.google.com/">Google Fonts</a> and combine them with an icon from the <a
href="https://developer.microsoft.com/en-us/fabric#/styles/icons">Microsoft Office UI Fabric</a>. The primary disadvantage is that the fonts and icons are limited to a single visual and not available for formatting other visuals. On the other hand, advantages of using the HTML Viewer for a custom textbox is greater control over the output including positioning and style, the ability to easily combine text with images, and the quality remains constant regardless of how large or small you scale an image in the HTML Viewer.</p><h3>Google Fonts</h3><p>On the Modeling tab, select New Table and enter the following DAX. The <strong>DATATABLE</strong> function creates a new disconnected table with the custom HTML in a field for later use in the HTML Viewer. The <strong>head </strong>contains the link to two free fonts from Google called Gaegu and Uncial Antiqua, which are pipe-separated. The <strong>body</strong> contains the text elements with inline CSS styling. I tried using CSS with &lt;style&gt; tags in &lt;head&gt;, and while some styling worked, the fonts did not work in Power BI. I intentionally chose outlandish fonts to stand out (with Gaegu in particular rivaling Comic Sans for the crown of <em>Font to Avoid on a Real Report</em>), but there are hundreds of others available on the Google Fonts site.</p><pre>Google Fonts = DATATABLE (
    "HTML Text", STRING, {
        {
            "&lt;head&gt;
                &lt;link href='https://fonts.googleapis.com/css?family=Gaegu|Uncial Antiqua' rel='stylesheet'&gt;
            &lt;/head&gt;
            &lt;body&gt;
                &lt;p style='font-family:Uncial Antiqua;color:#017CBA;font-size:72px;text-align:center;margin:0;'&gt;Custom web fonts in &lt;/p&gt;
                &lt;p style='font-family:Gaegu;color:#E78E46;font-size:96px;text-align:center;margin:0;'&gt;Power BI&lt;/p&gt;
            &lt;/body&gt;"
        }
    }
)</pre><p>When you add the field to an instance of the HTML Viewer custom visual, the output appears like so.</p><p><img
data-attachment-id="7549" data-permalink="https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/pbi-customwebfonts-02/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?fit=908%2C212&amp;ssl=1" data-orig-size="908,212" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="PBI-CustomWebFonts-02" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?fit=300%2C70&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?fit=640%2C149&amp;ssl=1" class="alignnone size-full wp-image-7549" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?resize=640%2C149&#038;ssl=1" alt="Custom Web Fonts in Power BI" width="640" height="149" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?w=908&amp;ssl=1 908w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?resize=300%2C70&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-02.png?resize=768%2C179&amp;ssl=1 768w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><h3>Microsoft Office UI Fabric</h3><p>Going a step further, the <a
href="https://developer.microsoft.com/en-us/fabric">Microsoft Office UI Fabric</a> is a framework for styling an application or site like MS Office. In this case, I&#8217;ll use a small piece of the Fabric capabilities to add a Power BI logo icon that will scale with good quality regardless of how large I make the image.</p><p>On the Modeling tab, select New Table and enter the following DAX.</p><pre>Microsoft Office UI Fabric = DATATABLE (
    "HTML Text", STRING, {
        {
            "&lt;head&gt;
                &lt;link href='https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/1.4.0/css/fabric.min.css' rel='stylesheet'&gt;
            &lt;/head&gt;
            &lt;body&gt;
                &lt;i class='ms-Icon ms-Icon--PowerBILogo' style='font-size:96px;color:#443322;transform:translate(10px,30px);' aria-hidden='true'&gt;&lt;/i&gt;
            &lt;/body&gt;"
        }
    }
)</pre><p>Adding this new field to the HTML Viewer visual shows the Power BI logo.</p><p><img
data-attachment-id="7550" data-permalink="https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/pbi-customwebfonts-03/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-03.png?fit=154%2C131&amp;ssl=1" data-orig-size="154,131" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="PBI-CustomWebFonts-03" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-03.png?fit=154%2C131&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-03.png?fit=154%2C131&amp;ssl=1" class="alignnone size-full wp-image-7550" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-03.png?resize=154%2C131&#038;ssl=1" alt="Power BI Custom Web Fonts" width="154" height="131" data-recalc-dims="1" /></p><h3>Combine the Two</h3><p>It&#8217;s possible to combine both as well. After all, flexibility is one of the main strengths of the HTML Viewer.</p><pre>Combined = DATATABLE (
    "HTML Text", STRING, {
        {
            "&lt;head&gt;
                &lt;link href='https://fonts.googleapis.com/css?family=Gaegu|Uncial Antiqua' rel='stylesheet'&gt;
                &lt;link href='https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/1.4.0/css/fabric.min.css' rel='stylesheet'&gt;
            &lt;/head&gt;
            &lt;body&gt;
                &lt;p style='font-family:Uncial Antiqua;color:#017CBA;font-size:72px;text-align:center;margin:0;'&gt;Custom web fonts in &lt;/p&gt;
                &lt;p style='font-family:Gaegu;color:#E78E46;font-size:96px;text-align:center;margin:0;'&gt;Power BI&lt;/p&gt;
                &lt;i class='ms-Icon ms-Icon--PowerBILogo' style='font-size:96px;color:#443322; display:inline-block;width:100%;text-align:center;transform:translate(0px,40px);' aria-hidden='true'&gt;&lt;/i&gt;
            &lt;/body&gt;"
        }
    }
)</pre><p><img
data-attachment-id="7548" data-permalink="https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/pbi-customwebfonts-01/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?fit=1003%2C615&amp;ssl=1" data-orig-size="1003,615" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="PBI-CustomWebFonts-01" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?fit=300%2C184&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?fit=640%2C392&amp;ssl=1" class="alignnone size-full wp-image-7548" src="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?resize=640%2C392&#038;ssl=1" alt="Custom Web Fonts in Power BI" width="640" height="392" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?w=1003&amp;ssl=1 1003w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?resize=300%2C184&amp;ssl=1 300w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/PBI-CustomWebFonts-01.png?resize=768%2C471&amp;ssl=1 768w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>While this has some very obvious limitations and won&#8217;t bring custom fonts to all of your visuals, it could provide some unique experiences with titles, images, and more. I&#8217;m curious to see if anyone takes advantage of this method for custom web fonts and icons in Power BI.</p><p>&nbsp;<br
/><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/">Custom Web Fonts and Icons in Power BI</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2018/06/18/custom-web-fonts-and-icons-in-power-bi/feed/</wfw:commentRss> <slash:comments>10</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">7547</post-id> </item> <item><title>Updating Power BI Theme Files With New Options</title><link>https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/</link> <comments>https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/#comments</comments> <pubDate>Sat, 09 Jun 2018 18:35:43 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Themes]]></category><guid
isPermaLink="false">https://dataveld.com/?p=7537</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span> Earlier in the year, I published template Theme files for Power BI&#8217;s visual settings. These files were not meant to be complete themes but were instead for reference in building your own themes. What happens when Microsoft introduces new Format...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/">Updating Power BI Theme Files With New Options</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span>Earlier in the year, I published <a
href="https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/">template Theme files</a> for Power BI&#8217;s visual settings. These files were not meant to be complete themes but were instead for reference in building your own themes. What happens when Microsoft introduces new Format options for a visual though? The <a
href="https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-june-2018-feature-summary/">June Power BI Desktop update</a> provides an opportunity to check for new theme properties when the <a
href="https://docs.microsoft.com/en-us/power-bi/desktop-report-themes">documentation</a> or <a
href="https://powerbi.tips/tools/report-theme-generator-v3/">third-party tools</a> have not yet been updated.</p><p>In the June update, the Donut chart received an Inner Radius property while both the Pie and Donut received a Label Position option. Before anyone tries to comment about how round things do not belong in data visualization, know that I hear you. It&#8217;s not this post&#8217;s topic though. Besides, with a theme file, you can prank your donut-loving colleagues by setting the inner radius to 100. Try doing that in Power BI&#8217;s Format area, which only allows you to set a radius to 95&#8230;</p><p><img
data-attachment-id="7538" data-permalink="https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/donutproperties/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutProperties.png?fit=288%2C560&amp;ssl=1" data-orig-size="288,560" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="DonutProperties" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutProperties.png?fit=154%2C300&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutProperties.png?fit=288%2C560&amp;ssl=1" class="alignnone size-full wp-image-7538" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutProperties.png?resize=288%2C560&#038;ssl=1" alt="Power BI Donut Format Options" width="288" height="560" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutProperties.png?w=288&amp;ssl=1 288w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutProperties.png?resize=154%2C300&amp;ssl=1 154w" sizes="(max-width: 288px) 100vw, 288px" data-recalc-dims="1" /></p><p>You might assume that with a new option named <strong>Inner Radius </strong>under <strong>Shapes</strong> that the theme might look something like this:</p><pre>"shapes": [{
    "innerRadius": 90
}]</pre><p>That&#8217;s wrong though and won&#8217;t work. The actual addition to the JSON is this:</p><pre>"slices": [{
    "innerRadiusRatio": 90
}]</pre><p>Huh? Slices??? Inner Radius <em>Ratio</em>??? How can we figure that out without endlessly guessing? When changes like this occur, you can immediately adjust your Theme files for the new properties using the following process:</p><ol><li>In a Power BI Desktop report, add the visual you want to theme and save the report as a Template. I started using .pbit files for this type of work instead of copying and pasting my .pbix. There&#8217;s less chance of me messing up my main report accidentally.</li><li>Extract/unzip the contents of the .pbit file and find the Layout file.</li><li>Open the Layout file in a text editor and search for the visual you want (use Find to help navigate as there&#8217;s a lot of text to look through). The inner radius example looks like this:<pre>slices\":[{\"properties\":{\"innerRadiusRatio\":{\"expr\":{\"Literal\":{\"Value\":\"40L\"}}}}}]}</pre></li><li>Add the new option you find to your theme file (an entirely new section in this case is <strong>slices</strong> while the new option is <strong>innerRadiusRatio</strong>).</li></ol><p>Ironically, with the donut&#8217;s inner radius set to 0, we get a pie chart. Power BI now has <strong>two</strong> ways to make a pie chart. Do we still need a separate pie chart visual? Think how avant-garde it would be if Power BI removed pie charts. The marketing would be something like &#8220;FIRST BI TOOL TO ABOLISH PIE CHARTS&#8221; with Satya waving his hand while they all disappear. All this while secretly retaining the ability to create them using donuts&#8230;</p><p><img
data-attachment-id="7539" data-permalink="https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/donutinnerradius/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutInnerRadius.gif?fit=642%2C404&amp;ssl=1" data-orig-size="642,404" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="DonutInnerRadius" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutInnerRadius.gif?fit=300%2C189&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutInnerRadius.gif?fit=640%2C403&amp;ssl=1" class="alignnone size-full wp-image-7539" src="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/06/DonutInnerRadius.gif?resize=640%2C403&#038;ssl=1" alt="Donut Inner Radius" width="640" height="403" data-recalc-dims="1" /></p><p>I&#8217;ve updated my Pie and Donut <a
href="https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/">template files </a>with the new options. We can also update Power BI&#8217;s documentation on GitHub and submit pull requests. Maybe our Power BI community could do that too for this and other functionality.</p><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/">Updating Power BI Theme Files With New Options</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2018/06/09/adding-new-visual-properties-to-power-bi-theme-files/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">7537</post-id> </item> <item><title>Tableau to Power BI: FIXED LOD Expressions</title><link>https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/</link> <comments>https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/#comments</comments> <pubDate>Sun, 18 Feb 2018 04:58:18 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Tableau]]></category> <category><![CDATA[DAX]]></category> <category><![CDATA[LOD]]></category><guid
isPermaLink="false">https://dataveld.wordpress.com/?p=7134</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span> Every once in awhile, I encounter questions from a trainee or client who is familiar with Tableau but who is getting started with Power BI. They have the ability to do X in Tableau and want to know its equivalent...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/">Tableau to Power BI: FIXED LOD Expressions</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span>Every once in awhile, I encounter questions from a trainee or client who is familiar with Tableau but who is getting started with Power BI. They have the ability to do X in Tableau and want to know its equivalent in Power BI. In some cases, it&#8217;s an easy answer, and in other cases, there is no answer. That&#8217;s part of the difficulty in comparing products at different stages in their lifecycles.</p><p>About three years ago, Tableau introduced <a
href="https://www.blue-granite.com/blog/bid/404844/level-of-detail-expressions-tableau-modeling-is-now-better-than-ever" target="_blank" rel="noopener">Level of Detail (LOD) expressions</a> in version 9. In Power BI terminology, a Tableau LOD changes the filter context. For Power BI readers who may not be familiar with LOD expressions, there are three keywords that help change that context: FIXED, INCLUDE, and EXCLUDE. Tableau has a <a
href="https://www.tableau.com/learn/whitepapers/understanding-lod-expressions" target="_blank" rel="noopener">whitepaper</a> that explains each type as well as shows how they evaluate within a filtering hierarchy. There are also numerous blog posts from Tableau community members that help explain LOD expressions.</p><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="3251977742" data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>Oversimplified for this post, the FIXED LOD specifies an <a
href="https://www.tableau.com/learn/whitepapers/understanding-lod-expressions" target="_blank" rel="noopener"><em>exact</em> level of detail</a>. In Power BI, one way to approach this is to use the <a
href="https://msdn.microsoft.com/en-us/library/ee634795.aspx" target="_blank" rel="noopener">ALLEXCEPT</a> function to preserve a filter on a given column.</p><p>The example LOD I use in this post is from Tableau&#8217;s <em><a
href="https://www.tableau.com/about/blog/LOD-expressions" target="_blank" rel="noopener">#5 New Customer Acquisition</a></em> calculation from their <em>Top 15 LOD Expressions </em>blog post. The Tableau calculation is:</p><pre>{FIXED [Customer ID]: MIN([Order Date])}</pre><p>This sets a &#8220;fixed&#8221; value of the minimum order date for the associated Customer ID on each row.</p><p><img
data-attachment-id="7139" data-permalink="https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/lod-fixed-2/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?fit=776%2C569&amp;ssl=1" data-orig-size="776,569" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="LOD-FIXED-2" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?fit=300%2C220&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?fit=640%2C469&amp;ssl=1" class="alignnone size-full wp-image-7139" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?resize=640%2C469&#038;ssl=1" alt="Tableau FIXED LOD expression" width="640" height="469" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?w=776&amp;ssl=1 776w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?resize=300%2C220&amp;ssl=1 300w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-2.png?resize=768%2C563&amp;ssl=1 768w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>For new Power BI users attempting to recreate this in DAX, an equivalent approach could be to create the following new measure:</p><pre>CALCULATE(
    MIN('Table'[Order Date]), 
    ALLEXCEPT('Table', 'Table'[Customer ID])
)</pre><p><img
data-attachment-id="7137" data-permalink="https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/lod-fixed-4/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-4.png?fit=717%2C97&amp;ssl=1" data-orig-size="717,97" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="LOD-FIXED-4" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-4.png?fit=300%2C41&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-4.png?fit=640%2C87&amp;ssl=1" class="alignnone size-full wp-image-7137" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-4.png?resize=640%2C87&#038;ssl=1" alt="Power BI ALLEXCEPT Tableau FIXED LOD" width="640" height="87" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-4.png?w=717&amp;ssl=1 717w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-4.png?resize=300%2C41&amp;ssl=1 300w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>In this particular case, since you are working with dates, you could also use the FIRSTDATE function in place of MIN.</p><pre>CALCULATE(
    FIRSTDATE('Table'[Order Date]), 
    ALLEXCEPT('Table', 'Table'[Customer ID])
)</pre><p><img
data-attachment-id="7138" data-permalink="https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/lod-fixed-3/" data-orig-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-3.png?fit=726%2C96&amp;ssl=1" data-orig-size="726,96" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="LOD-FIXED-3" data-image-description="" data-medium-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-3.png?fit=300%2C40&amp;ssl=1" data-large-file="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-3.png?fit=640%2C85&amp;ssl=1" class="alignnone size-full wp-image-7138" src="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-3.png?resize=640%2C85&#038;ssl=1" alt="Power BI ALLEXCEPT Tableau FIXED LOD" width="640" height="85" srcset="https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-3.png?w=726&amp;ssl=1 726w, https://i2.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-3.png?resize=300%2C40&amp;ssl=1 300w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>Here is the result in Power BI:</p><p><img
data-attachment-id="7140" data-permalink="https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/lod-fixed-1/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-1.png?fit=397%2C332&amp;ssl=1" data-orig-size="397,332" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="LOD-FIXED-1" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-1.png?fit=300%2C251&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-1.png?fit=397%2C332&amp;ssl=1" class="alignnone size-full wp-image-7140" src="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-1.png?resize=397%2C332&#038;ssl=1" alt="Power BI ALLEXCEPT Tableau FIXED LOD expression" width="397" height="332" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-1.png?w=397&amp;ssl=1 397w, https://i0.wp.com/dataveld.com/wp-content/uploads/2018/02/lod-fixed-1.png?resize=300%2C251&amp;ssl=1 300w" sizes="(max-width: 397px) 100vw, 397px" data-recalc-dims="1" /></p><p>Going a step further, you can used FIXED with multiple dimensions. In Power BI, simply add additional ALLEXCEPT functions as filters for CALCULATE.</p><pre>{FIXED [Customer ID], [Product Name]: MIN([Order Date])}</pre><pre>CALCULATE(
    FIRSTDATE('Table'[Order Date]), 
    ALLEXCEPT('Table', 'Table'[Customer ID]),
    ALLEXCEPT('Table', 'Table'[Product Name]),
)</pre><p>&nbsp;</p><p>I&#8217;m not an expert when it comes to DAX, but there are plenty of great resources to help learn more for Power BI. What are some that I regularly reference? I recommend checking out Curbal&#8217;s <em><a
href="https://www.youtube.com/c/CurbalEN" target="_blank" rel="noopener">DAX Fridays!</a></em> video series on YouTube and reading material from <a
href="https://www.sqlbi.com/" target="_blank" rel="noopener">Alberto and Marco</a> as well as <a
href="https://exceleratorbi.com.au/exceleratorblog/" target="_blank" rel="noopener">Matt Allington</a>.</p><p>NEXT: Learn how to &#8220;translate&#8221; an EXCLUDE LOD expression to DAX &#8211; <a
href="https://dataveld.com/2018/02/24/tableau-power-bi-exclude-level-detail-expressions/">Tableau to Power BI: EXCLUDE Level of Detail Expressions</a></p><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/">Tableau to Power BI: FIXED LOD Expressions</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2018/02/17/tableau-to-power-bi-fixed-lod-expressions/feed/</wfw:commentRss> <slash:comments>3</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">7134</post-id> </item> <item><title>Template Theme Files for Power BI Visuals</title><link>https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/</link> <comments>https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/#comments</comments> <pubDate>Sat, 20 Jan 2018 14:45:09 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Themes]]></category><guid
isPermaLink="false">https://dataveld.wordpress.com/?p=7035</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span> A few months ago, Power BI expanded the capabilities of Themes to include more than colors. You can now change the Format and even configure Analytics such as forecasting. In a previous post, I looked at how you can use...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/">Template Theme Files for Power BI Visuals</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">2</span> <span
class="rt-label rt-postfix">minutes</span></span>A few months ago, Power BI expanded the capabilities of Themes to include more than colors. You can now change the Format and even configure Analytics such as forecasting. In a <a
href="https://dataveld.com/2018/01/05/control-and-expand-your-power-bi-font-selection-with-themes/" target="_blank" rel="noopener">previous post</a>, I looked at how you can use the wildcard character (*) to universally set formatting under <em>visualStyles. </em>Here, I want to share the fruit of some work to catalog low-level properties on a <em>per-visual </em>basis. The files can act as a code reference to see the <em>structure</em> of each visual&#8217;s format options. <strong>They should be not treated as final Theme files like those you find in the <a
href="https://community.powerbi.com/t5/Themes-Gallery/bd-p/ThemesGallery" target="_blank" rel="noopener">Themes </a><a
href="https://community.powerbi.com/t5/Themes-Gallery/bd-p/ThemesGallery" target="_blank" rel="noopener">Gallery</a></strong>.<strong> </strong></p><p>Before creating Themes in Power BI, it would be helpful to review the documentation on <a
href="https://docs.microsoft.com/en-us/power-bi/desktop-report-themes" target="_blank" rel="noopener">Report Themes</a>. I had a lot of trouble and confusion with how the properties for all visuals are presented <em>together</em> in the documentation, so I split things out into separate visuals and also filled in some gaps. This made it easier for me to compare what I was seeing in a visual&#8217;s Format menu with what I was adding to a theme file.</p><h2><strong>&#8211;&gt;&gt; Get them from GitHub or view the list of individual links below: <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/README.md" target="_blank" rel="noopener">PowerBI-ThemeTemplates</a> repository&lt;&lt;&#8211;</strong></h2><p>If you notice an issue, log it in the GitHub repository. Better yet, fork it, fix the problem, and submit a pull request.</p><p><img
data-attachment-id="7044" data-permalink="https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/shapetemplate-2/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?fit=1288%2C495&amp;ssl=1" data-orig-size="1288,495" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="ShapeTemplate" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?fit=300%2C115&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?fit=640%2C246&amp;ssl=1" class="alignnone size-full wp-image-7044" src="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?resize=640%2C246&#038;ssl=1" alt="ShapeTemplate" width="640" height="246" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?w=1288&amp;ssl=1 1288w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?resize=300%2C115&amp;ssl=1 300w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?resize=768%2C295&amp;ssl=1 768w, https://i1.wp.com/dataveld.com/wp-content/uploads/2018/01/shapetemplate1.png?resize=1024%2C394&amp;ssl=1 1024w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></p><p>Glancing at any of the JSON files, you should notice that there are properties with names that do not align with what you see in Power BI&#8217;s Format menu. Properties used in Themes are based on the <em>code</em> used in the visual and not the display name that users see in Power BI. Sometimes these names match but usually they do not. For example, in the screenshot above for a Shape, &#8220;Rotation&#8221; in Power BI Desktop corresponds to &#8220;angle&#8221; in the JSON.</p><p>These template files function as a quick reference for anyone who does not simply want to rely on using wildcards (*) and who may not want to dig through the report theme documentation to figure it out on their own. Remember, <strong>these are not final theme files</strong>. They are more of a reference for the structure. Many of the values are not Power BI&#8217;s defaults but are set to easily verify a format change. In other words, these settings are often <em>intentionally ugly</em> so that I could easily check whether something changed.</p><p>Feel free to combine visuals, omit properties you don&#8217;t need, and change the sample values to what you want. Use these templates as <strong>guides</strong> to building your own themes.</p><p><strong>Available Visuals:</strong><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Area.json" target="_blank" rel="noopener">Area Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Card.json" target="_blank" rel="noopener">Card</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/ClusteredBar.json" target="_blank" rel="noopener">Clustered Bar Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/ClusteredColumn.json" target="_blank" rel="noopener">Clustered Column Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Donut.json" target="_blank" rel="noopener">Donut Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/FilledMap.json" target="_blank" rel="noopener">Filled Map</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Funnel.json" target="_blank" rel="noopener">Funnel Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Gauge.json" target="_blank" rel="noopener">Gauge</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/HundredPercentStackedBar.json" target="_blank" rel="noopener">Hundred Percent Stacked Bar Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/HundredPercentStackedColumn.json" target="_blank" rel="noopener">Hundred Percent Stacked Column Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Image.json" target="_blank" rel="noopener">Image</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/KPI.json" target="_blank" rel="noopener">KPI</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Line.json" target="_blank" rel="noopener">Line Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/LineClusteredColumnCombo.json" target="_blank" rel="noopener">Line and Clustered Column Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/LineStackedColumnCombo.json" target="_blank" rel="noopener">Line and Stacked Column Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Map.json" target="_blank" rel="noopener">Map</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Matrix.json" target="_blank" rel="noopener">Matrix</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/MultirowCard.json" target="_blank" rel="noopener">Multi-row Card</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Pie.json" target="_blank" rel="noopener">Pie Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Ribbon.json" target="_blank" rel="noopener">Ribbon Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/ScatterChart.json" target="_blank" rel="noopener">Scatter Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Shape.json" target="_blank" rel="noopener">Shape</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/ShapeMap.json" target="_blank" rel="noopener">Shape Map</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Slicer.json" target="_blank" rel="noopener">Slicer</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/StackedArea.json" target="_blank" rel="noopener">Stacked Area Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/StackedBar.json" target="_blank" rel="noopener">Stacked Bar Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/StackedColumn.json" target="_blank" rel="noopener">Stacked Column Chart</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Table.json" target="_blank" rel="noopener">Table</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Treemap.json" target="_blank" rel="noopener">Treemap</a><br
/> <a
href="https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Waterfall.json" target="_blank" rel="noopener">Waterfall</a></p><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5931835938684253"
data-ad-slot="6104236328"
data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/">Template Theme Files for Power BI Visuals</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2018/01/20/template-theme-files-for-power-bi-visuals/feed/</wfw:commentRss> <slash:comments>10</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">7035</post-id> </item> <item><title>Adding an HTML Tooltip in ArcGIS Maps for Power BI</title><link>https://dataveld.com/2016/10/04/adding-an-html-tooltip-in-arcgis-maps-for-power-bi/</link> <comments>https://dataveld.com/2016/10/04/adding-an-html-tooltip-in-arcgis-maps-for-power-bi/#comments</comments> <pubDate>Tue, 04 Oct 2016 12:01:48 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Data Visualization]]></category> <category><![CDATA[Maps]]></category> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[ArcGIS]]></category> <category><![CDATA[Microsoft]]></category><guid
isPermaLink="false">https://dataveld.wordpress.com/?p=3839</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span> With the preview launch of ArcGIS Maps for Power BI, one unexpected improvement is the ability to enhance tooltips. Whether you would like to add an image, formatted text, a table, or a list; you have a few different options to enhance your tooltip with HTML.</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2016/10/04/adding-an-html-tooltip-in-arcgis-maps-for-power-bi/">Adding an HTML Tooltip in ArcGIS Maps for Power BI</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">3</span> <span
class="rt-label rt-postfix">minutes</span></span>With the preview launch of <em>ArcGIS Maps for Power BI</em>, one unexpected improvement is the ability to <b>enhance </b><strong>tooltips</strong>. Whether you would like to add an image, stylized text, a table, or a list; you have a few different options to customize a tooltip with HTML. While not all HTML functionality is available, you can still make a fairly engaging tooltip!</p><p><img
data-attachment-id="3856" data-permalink="https://dataveld.com/pbihtmltooltip/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/10/pbihtmltooltip.png?fit=531%2C293&amp;ssl=1" data-orig-size="531,293" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="pbihtmltooltip" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/10/pbihtmltooltip.png?fit=300%2C166&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/10/pbihtmltooltip.png?fit=531%2C293&amp;ssl=1" class="size-full wp-image-3856 aligncenter" src="https://dataveld.files.wordpress.com/2016/10/pbihtmltooltip.png?resize=531%2C293" alt="pbihtmltooltip" width="531" height="293" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/10/pbihtmltooltip.png?w=531&amp;ssl=1 531w, https://i0.wp.com/dataveld.com/wp-content/uploads/2016/10/pbihtmltooltip.png?resize=300%2C166&amp;ssl=1 300w" sizes="(max-width: 531px) 100vw, 531px" data-recalc-dims="1" /></p><p><strong>DISCLAIMER: I do not know if this is or will be officially supported or documented <span
style="color: #993300;">(UPDATE: it&#8217;s not and won&#8217;t be)</span>, so the following tooltip functionality may change at any point. I&#8217;m hopeful that it does not, and that Power BI may add similar functionality for its <em>other</em> visuals. In the meantime, don&#8217;t put this into a production report with the expectation that it will always work. </strong></p><p>How is this enhanced formatting accomplished? Most visuals in Power BI have a dedicated <em>Tooltip</em> field, but the ArcGIS map does not. Instead, for maps that only rely upon Latitude and Longitude, you can create a <strong>calculated column</strong> and add it to the unused <strong>Location</strong> field. The calculated column contains a series of concatenated strings that blend DAX with HTML. Hopefully when or if a real <em>Tooltip </em>field is added, you can use the same column and simply add it to <em>Tooltip</em> in place of <em>Location</em>.</p><p><img
data-attachment-id="3922" data-permalink="https://dataveld.com/pbifieldwell/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbifieldwell.png?fit=353%2C395&amp;ssl=1" data-orig-size="353,395" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="pbifieldwell" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbifieldwell.png?fit=268%2C300&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbifieldwell.png?fit=353%2C395&amp;ssl=1" class="size-full wp-image-3922 aligncenter" src="https://dataveld.files.wordpress.com/2016/10/pbifieldwell.png?resize=353%2C395" alt="PBIFieldWell.PNG" width="353" height="395" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbifieldwell.png?w=353&amp;ssl=1 353w, https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbifieldwell.png?resize=268%2C300&amp;ssl=1 268w" sizes="(max-width: 353px) 100vw, 353px" data-recalc-dims="1" /></p><p>For my custom tooltip, I used an &lt;img&gt; tag to add my company&#8217;s <a
href="https://www.blue-granite.com/" target="_blank" rel="noopener">BlueGranite logo</a> to the outage map that I <a
href="https://dataveld.com/2016/09/30/how-arcgis-maps-for-power-bi-will-transform-my-work/" target="_blank" rel="noopener">discussed a few days ago</a>. I then combined my Power BI column references with their &#8220;Reported&#8221; and &#8220;Restoration Estimate&#8221; labels. Finally, I added a table using the &lt;table&gt; tag and added references to the appropriate Power BI columns within the HTML. Basic inline CSS also works, which provides a different color for the table headers.</p><p>It&#8217;s even possible to handle conditional formatting with DAX. I used IF() to supply alternate colors in the table details, which you can see in action in the following GIF.</p><p><img
data-attachment-id="3976" data-permalink="https://dataveld.com/pbitooltip/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltip.gif?fit=738%2C496&amp;ssl=1" data-orig-size="738,496" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="pbitooltip" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltip.gif?fit=300%2C202&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltip.gif?fit=640%2C430&amp;ssl=1" class="alignnone size-full wp-image-3976" src="https://dataveld.files.wordpress.com/2016/10/pbitooltip.gif?resize=640%2C430" alt="pbitooltip" width="640" height="430" data-recalc-dims="1" /></p><p>If you are interested in trying it out on your own, here&#8217;s the latest version of the code that built my sample tooltip:</p><style>.gist
table{margin-bottom:0}</style><div
class="gist-oembed" data-gist="bda87b35228c88702a7aab941d1f4436.json" data-ts="8"></div><p>In case you are wondering, I also tried this with the <strong>Tooltip</strong> field in other Power BI visuals, but it only displays the text and does not render the HTML.</p><p><img
data-attachment-id="3991" data-permalink="https://dataveld.com/pbicommontooltip-2/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbicommontooltip1.png?fit=380%2C288&amp;ssl=1" data-orig-size="380,288" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="pbicommontooltip" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbicommontooltip1.png?fit=300%2C227&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbicommontooltip1.png?fit=380%2C288&amp;ssl=1" class="size-full wp-image-3991 aligncenter" src="https://dataveld.files.wordpress.com/2016/10/pbicommontooltip1.png?resize=380%2C288" alt="pbicommontooltip" width="380" height="288" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbicommontooltip1.png?w=380&amp;ssl=1 380w, https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbicommontooltip1.png?resize=300%2C227&amp;ssl=1 300w" sizes="(max-width: 380px) 100vw, 380px" data-recalc-dims="1" /></p><p>&nbsp;</p><p>What clued me in on the new enhanced tooltip? If you add a reference layer to your ArcGIS Map, you can click on various features and will not only see formatted <em>text</em>, but <strong>charts in tooltips</strong>! <a
href="https://twitter.com/lukasztweets" target="_blank" rel="noopener">Lukasz Pawlowski</a> from the Microsoft Power BI team has a good video demonstrating the new maps <a
href="https://datamadegood.com/2016/10/01/arcgis-maps-for-power-bi-preview/" target="_blank" rel="noopener">on his blog</a>, which shows off the enhanced tooltip starting at around the 2:40 mark. <span
style="color: #993300;"><strong>(CLARIFICATION: Those charts are </strong><em><strong>built-in</strong><strong>. </strong></em><strong>This method is a DAX hack).</strong></span></p><p>Finally, here is a running list of what works and does not. If anyone with better skills in this area would like to test it out and potentially improve upon or correct the items, I would be grateful.</p><p><strong>Working</strong></p><ul><li><strong>line break &lt;br&gt; tags</strong></li><li><strong>paragraph &lt;p&gt; tags</strong></li><li><strong>bold and italics with &lt;b&gt; and &lt;em&gt;</strong></li><li><strong>tables with &lt;table&gt; tags</strong></li><li><strong>lists with &lt;ol&gt; and &lt;ul&gt; tags</strong> &#8211; lists do not show bullets or numbers though</li><li><strong>inline CSS styling</strong></li></ul><p><strong>Not working</strong></p><ul><li><strong>link &lt;a&gt; tags</strong> &#8211; href links appear but do nothing when you click on them</li><li><strong>iframes with &lt;iframe&gt; tags</strong> &#8211; frame border appears but does not work</li><li><strong>various &lt;input&gt; tags</strong> &#8211; appear, but of course there&#8217;s nothing to do with the input</li><li><strong>inline Javascript with &lt;script&gt; tags</strong> &#8211; in-progress attempts to use basic Javascript have not worked</li></ul><p>&nbsp;</p><p>Read <a
href="https://dataveld.com/2017/06/03/10-ways-to-create-maps-in-microsoft-power-bi/">10 Ways to Create Maps in Microsoft Power BI</a>.</p><p><img
data-attachment-id="3897" data-permalink="https://dataveld.com/pbitooltiptesting/" data-orig-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltiptesting.png?fit=363%2C325&amp;ssl=1" data-orig-size="363,325" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="pbitooltiptesting" data-image-description="" data-medium-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltiptesting.png?fit=300%2C269&amp;ssl=1" data-large-file="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltiptesting.png?fit=363%2C325&amp;ssl=1" class="size-full wp-image-3897 aligncenter" src="https://dataveld.files.wordpress.com/2016/10/pbitooltiptesting.png?resize=363%2C325" alt="pbitooltiptesting" width="363" height="325" srcset="https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltiptesting.png?w=363&amp;ssl=1 363w, https://i1.wp.com/dataveld.com/wp-content/uploads/2016/10/pbitooltiptesting.png?resize=300%2C269&amp;ssl=1 300w" sizes="(max-width: 363px) 100vw, 363px" data-recalc-dims="1" /></p><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle" style="display: block;" data-ad-client="ca-pub-5931835938684253" data-ad-slot="6104236328" data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2016/10/04/adding-an-html-tooltip-in-arcgis-maps-for-power-bi/">Adding an HTML Tooltip in ArcGIS Maps for Power BI</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2016/10/04/adding-an-html-tooltip-in-arcgis-maps-for-power-bi/feed/</wfw:commentRss> <slash:comments>6</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">3839</post-id> </item> <item><title>Embed a Live Microsoft Power BI Report in Jupyter</title><link>https://dataveld.com/2016/03/28/power-bi-embed-a-live-report-in-jupyter/</link> <comments>https://dataveld.com/2016/03/28/power-bi-embed-a-live-report-in-jupyter/#comments</comments> <pubDate>Mon, 28 Mar 2016 20:15:37 +0000</pubDate> <dc:creator><![CDATA[David Eldersveld]]></dc:creator> <category><![CDATA[Power BI]]></category> <category><![CDATA[Quick Reference]]></category> <category><![CDATA[Microsoft]]></category> <category><![CDATA[Python]]></category><guid
isPermaLink="false">https://dataveld.wordpress.com/?p=1990</guid> <description><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">&#60; 1</span> <span
class="rt-label rt-postfix">minute</span></span> Here&#8217;s a quick snippet showing how to host a live Power BI report in a Jupyter notebook using Power BI&#8217;s&#8221;Publish to Web&#8221; feature. Jupyter manages inline HTML fairly well when you are using Markdown, but it fails to render IFrames. The standard...</p><p>The post <a
rel="nofollow" href="https://dataveld.com/2016/03/28/power-bi-embed-a-live-report-in-jupyter/">Embed a Live Microsoft Power BI Report in Jupyter</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></description> <content:encoded><![CDATA[<p><span
class="rt-reading-time" style="display: block;"><span
class="rt-label rt-prefix">Reading Time: </span> <span
class="rt-time">&lt; 1</span> <span
class="rt-label rt-postfix">minute</span></span>Here&#8217;s a quick snippet showing how to host a live Power BI report in a Jupyter notebook using Power BI&#8217;s&#8221;Publish to Web&#8221; feature. Jupyter manages inline HTML fairly well when you are using <em>Markdown</em>, but it fails to render IFrames. The standard Power BI embed code using the HTML &lt;iframe&gt; tag will <strong>not</strong> work:</p><p>Instead, use <em>Code </em>with the IPython <em>IFrame</em> import:</p><pre>from IPython.display import IFrame

powerBiEmbed = 'https://app.powerbi.com/view?r=[...]'

IFrame(powerBiEmbed, width=800, height=600)


<img data-attachment-id="1997" data-permalink="https://dataveld.com/jupyter/" data-orig-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?fit=1335%2C483&amp;ssl=1" data-orig-size="1335,483" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="Jupyter" data-image-description="" data-medium-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?fit=300%2C109&amp;ssl=1" data-large-file="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?fit=640%2C231&amp;ssl=1" class="alignnone size-full wp-image-1997" src="https://dataveld.files.wordpress.com/2016/03/jupyter.png?resize=640%2C232" alt="Jupyter" width="640" height="232" srcset="https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?w=1335&amp;ssl=1 1335w, https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?resize=300%2C109&amp;ssl=1 300w, https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?resize=768%2C278&amp;ssl=1 768w, https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?resize=1024%2C370&amp;ssl=1 1024w, https://i0.wp.com/dataveld.com/wp-content/uploads/2016/03/jupyter.png?w=1280&amp;ssl=1 1280w" sizes="(max-width: 640px) 100vw, 640px" data-recalc-dims="1" /></pre><p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?6bfec1&amp;6bfec1"></script><br
/> <br
/> <ins
class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-5931835938684253"
data-ad-slot="6104236328"
data-ad-format="auto"></ins><br
/><script>(adsbygoogle=window.adsbygoogle||[]).push({});</script></p><p>The post <a
rel="nofollow" href="https://dataveld.com/2016/03/28/power-bi-embed-a-live-report-in-jupyter/">Embed a Live Microsoft Power BI Report in Jupyter</a> appeared first on <a
rel="nofollow" href="https://dataveld.com">DataVeld</a>.</p> ]]></content:encoded> <wfw:commentRss>https://dataveld.com/2016/03/28/power-bi-embed-a-live-report-in-jupyter/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <post-id
xmlns="com-wordpress:feed-additions:1">1990</post-id> </item> </channel> </rss>