<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating Dynamic Title for visual using calculated mesure in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2017796#M31150</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that, it worked beautifully with a bit of tweaking.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Aug 2021 07:15:15 GMT</pubDate>
    <dc:creator>AlixB</dc:creator>
    <dc:date>2021-08-16T07:15:15Z</dc:date>
    <item>
      <title>Creating Dynamic Title for visual using calculated mesure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2005626#M31000</link>
      <description>&lt;P&gt;I'm trying to add a dynamic title to a visual, based on a selection of another visual, which I know how to do in theory, however the calculations to get it to work are causing a bit of a headache.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a category in a table is clicked on, I want the title to show that category, however if no category is clicked I don't want the title to show all categories, but something like "All Categories"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My initial thought was to create a new measure with the calculation&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Category = IF(DISTINCTCOUNT('Dataset1'[Account Category])&amp;gt;1,"All Categories",'Dataset1'[Account Category])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;However this won't work because a measure doesn't allow me to use&amp;nbsp;&lt;SPAN&gt;'Dataset1'[Account Category] as the alternative outcome.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So I thought I'd create a measure and then a calculated column referencing the measure.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Category = IF(COUNT('Dataset1'[Account Category])&amp;gt;1,2,1)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TitleCategory = if('Dataset1'[Category]=2,"All Categories",'Dataser1'[Account Category])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However this doesn't work either as calculated columns can't reference a measure column with a count function.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So I'm stuck as to what to try next.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The logic is very simple but the system is not allowing the calculation.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Can anyone help please?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 11:36:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2005626#M31000</guid>
      <dc:creator>AlixB</dc:creator>
      <dc:date>2021-08-09T11:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Title for visual using calculated mesure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2005672#M31001</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/318732"&gt;@AlixB&lt;/a&gt;&amp;nbsp;Check this out:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer-Title-Measure-Ever/m-p/429587#M154" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer-Title-Measure-Ever/m-p/429587#M154&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your first formula, use MAX around your column at the end.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 12:03:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2005672#M31001</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-08-09T12:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Title for visual using calculated mesure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2009752#M31039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/318732"&gt;@AlixB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to&amp;nbsp;&lt;A id="link_18" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/313" target="_self" aria-label="View Profile of Greg_Deckler"&gt;&lt;SPAN class="login-bold"&gt;Greg_Deckler&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;'s reply, we need to create a measure to get dynamic result.&lt;/P&gt;
&lt;P&gt;Measure will return&amp;nbsp;aggregations, in measure we need to use Sum function to get number type value and use Max function to get text, date type values.&lt;/P&gt;
&lt;P&gt;Try this measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
 IF(DISTINCTCOUNT('Dataset1'[Account Category])&amp;gt;1,"All Categories",MAX(Dataset1[Account Category]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result is as below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 925px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/570844i8A66BB66A72092EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select Category A in other visual:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 903px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/570843iA2856E2F590D35E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can refer to this blog to get more details about &lt;A href="https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/" target="_self"&gt;the differences between calculated column and measure&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 07:11:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2009752#M31039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-11T07:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Dynamic Title for visual using calculated mesure</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2017796#M31150</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for that, it worked beautifully with a bit of tweaking.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 07:15:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Creating-Dynamic-Title-for-visual-using-calculated-mesure/m-p/2017796#M31150</guid>
      <dc:creator>AlixB</dc:creator>
      <dc:date>2021-08-16T07:15:15Z</dc:date>
    </item>
  </channel>
</rss>

