<?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/"
	>

<channel>
	<title>Conditional Formatting | Capstone Analytics</title>
	<atom:link href="https://capstoneanalytics.com.au/tag/conditional-formatting/feed/" rel="self" type="application/rss+xml" />
	<link>https://capstoneanalytics.com.au</link>
	<description>Analytics Simplified</description>
	<lastBuildDate>Sat, 06 Jun 2020 04:54:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Using DAX to prevent users from entering the detailed pages from a landing page until every slicer is selected</title>
		<link>https://capstoneanalytics.com.au/using-dax-to-prevent-users-from-entering-the-detailed-pages-from-a-landing-page-until-every-slicer-is-selected/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-dax-to-prevent-users-from-entering-the-detailed-pages-from-a-landing-page-until-every-slicer-is-selected</link>
					<comments>https://capstoneanalytics.com.au/using-dax-to-prevent-users-from-entering-the-detailed-pages-from-a-landing-page-until-every-slicer-is-selected/#respond</comments>
		
		<dc:creator><![CDATA[Abhijith DSouza]]></dc:creator>
		<pubDate>Sat, 06 Jun 2020 04:54:46 +0000</pubDate>
				<category><![CDATA[Power BI]]></category>
		<category><![CDATA[Conditional Formatting]]></category>
		<category><![CDATA[Data Storytelling]]></category>
		<category><![CDATA[DAX]]></category>
		<category><![CDATA[Page Destination]]></category>
		<guid isPermaLink="false">https://capstoneanalytics.com.au/?p=2260</guid>

					<description><![CDATA[Suppose you have a landing page and you have a bunch of slicers on the page and you want the users to select at least one option on the slicers before they can enter the next page. It wasn&#8217;t possible with bookmarks before as you couldnt switch bookmarks using conditional formatting but you can do [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Suppose you have a landing page and you have a bunch of slicers on the page and you want the users to select at least one option on the slicers before they can enter the next page. It wasn&#8217;t possible with bookmarks before as you couldnt switch bookmarks using conditional formatting but you can do this using conditional formatting and the destination option.</p>
<p>We will use the Adventureworks database for this post. Create a page and call it &#8216;Summary Page&#8217;. This is where you want the users to enter from the landing page. I have created a few card visuals and line charts in the Summary Page for this exercise as follows</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2261" src="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Summary-page.png" alt="" width="1270" height="598" srcset="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Summary-page.png 1270w, https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Summary-page-980x461.png 980w, https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Summary-page-480x226.png 480w" sizes="(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1270px, 100vw" /></p>
<p>Next create a new page and call it &#8216;Landing Page&#8217;. Create three slicers on the page for Class, Colour, and SalesTerritoryCountry. Create a new blank button and apply some formatting to look like this</p>
<p><img decoding="async" class="alignnone size-full wp-image-2262" src="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/landing-page.png" alt="" width="1067" height="399" srcset="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/landing-page.png 1067w, https://capstoneanalytics.com.au/wp-content/uploads/2020/06/landing-page-980x366.png 980w, https://capstoneanalytics.com.au/wp-content/uploads/2020/06/landing-page-480x179.png 480w" sizes="(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1067px, 100vw" /></p>
<p>We now need to define a measure which will see if all of the three slicers are filtered and then give the name of the pages.</p>
<p>Destination Page =<br />
<span class="Keyword" style="color: #035aca;">IF</span><span class="Parenthesis" style="color: #808080;"> (</span><br />
<span class="indent4">    </span><span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Product'[Class] <span class="Parenthesis" style="color: #808080;">)</span> &amp;&amp; <span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Product'[Color] <span class="Parenthesis" style="color: #808080;">)</span><br />
<span class="indent8">        </span>&amp;&amp; <span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Territories'[SalesTerritoryCountry] <span class="Parenthesis" style="color: #808080;">)</span>,<br />
<span class="indent4">    </span><span class="StringLiteral" style="color: #d93124;">&#8220;Summary Page&#8221;</span>,<br />
<span class="indent4">    </span><span class="StringLiteral" style="color: #d93124;">&#8220;Landing Page&#8221;</span><br />
<span class="Parenthesis" style="color: #808080;">)</span></p>
<p>Remember to give the exact name of the page in the measure.</p>
<p>We will also define two more measures for the tooltips and button text</p>
<p>Destination Page Tooltip =<br />
<span class="Keyword" style="color: #035aca;">IF</span><span class="Parenthesis" style="color: #808080;"> (</span><br />
<span class="indent4">    </span><span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Product'[Class] <span class="Parenthesis" style="color: #808080;">)</span> &amp;&amp; <span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Product'[Color] <span class="Parenthesis" style="color: #808080;">)</span><br />
<span class="indent8">        </span>&amp;&amp; <span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Territories'[SalesTerritoryCountry] <span class="Parenthesis" style="color: #808080;">)</span>,<br />
<span class="indent4">    </span><span class="StringLiteral" style="color: #d93124;">&#8220;Press Enter to go to Summary page&#8221;</span>,<br />
<span class="indent4">    </span><span class="StringLiteral" style="color: #d93124;">&#8220;Please select at least one option in all three slicers &#8220;</span><br />
<span class="Parenthesis" style="color: #808080;">)</span></p>
<p>Button Text =<br />
<span class="Keyword" style="color: #035aca;">IF</span><span class="Parenthesis" style="color: #808080;"> (</span><br />
<span class="indent4">    </span><span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Product'[Class] <span class="Parenthesis" style="color: #808080;">)</span> &amp;&amp; <span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Product'[Color] <span class="Parenthesis" style="color: #808080;">)</span><br />
<span class="indent8">        </span>&amp;&amp; <span class="Keyword" style="color: #035aca;">ISFILTERED</span><span class="Parenthesis" style="color: #808080;"> (</span> &#8216;Dim Territories'[SalesTerritoryCountry] <span class="Parenthesis" style="color: #808080;">)</span>,<br />
<span class="indent4">    </span><span class="StringLiteral" style="color: #d93124;">&#8220;ENTER&#8221;</span>,<br />
<span class="indent4">    </span><span class="StringLiteral" style="color: #d93124;">&#8220;STOP&#8221;</span><br />
<span class="Parenthesis" style="color: #808080;">)</span></p>
<p>Now its the time to apply these measures to the button we created. With the button expand Action and in the Type option select Page navigation. Under Destination click the conditional formatting option (fx) and under &#8216;Format by&#8217; choose &#8216;Field Value&#8217; and select Destination Page as the measure under &#8216;Based on field&#8217; and press OK. Similarly for tooltips follow the same steps and choose Destination Page Tooltip as the measure and press OK. Now expand the Button Text option right at the top and leave ENTER as the button text for the Default state. Select &#8216;On hover&#8217; from the dropdown and click the conditional formatting option (fx) and  under &#8216;Format by&#8217; choose &#8216;Field Value&#8217; and select Button Text as the measure under &#8216;Based on field&#8217; and press OK. Select &#8216;On press&#8217; from the dropdown and follow the previous step.</p>
<p>Now you are ready to interact with the button on the landing page. When all three slicers are not filtered notice how the button text changes and also the tooltip and you wont be able to go to the next page. Only when all three slicers are selected can you go to the next page.</p>
<div style="width: 1080px;" class="wp-video"><video class="wp-video-shortcode" id="video-2260-1" width="1080" height="570" preload="metadata" controls="controls"><source type="video/mp4" src="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Landing-page.mp4?_=1" /><a href="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Landing-page.mp4">https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Landing-page.mp4</a></video></div>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://capstoneanalytics.com.au/using-dax-to-prevent-users-from-entering-the-detailed-pages-from-a-landing-page-until-every-slicer-is-selected/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://capstoneanalytics.com.au/wp-content/uploads/2020/06/Landing-page.mp4" length="384978" type="video/mp4" />

			</item>
	</channel>
</rss>
