<?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: dynamic title using calculation group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2761322#M85599</link>
    <description>&lt;P&gt;Hi Ben,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing a similar problem, did the solution work for you? Or how did you fix this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help, as i am really stuck here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Sep 2022 08:57:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-12T08:57:34Z</dc:date>
    <item>
      <title>dynamic title using calculation group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2323255#M58067</link>
      <description>&lt;P&gt;Hi Folks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the awesome Tabular Editor, I created a calculation group to format values in $ or Hours depending the selectedvalue of a drop down. That works fine with my values. The problem is the title of my visual is also dynamic ("Project Hours" or "Project $"), but as soon as I introduce the value formating in the visual, my title turns into an ugly "$#,##0" or "#,##0h" instead of the string expression. I tried to avoid the formating of the text measure following the Great Marco Russo's article &lt;A href="https://www.sqlbi.com/articles/controlling-format-strings-in-calculation-groups/" target="_self"&gt;here&lt;/A&gt;, with selectedvalueformatstring() expression, but then the title just doesn't show up at all... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea on how to bypass the formatting for dynamic text measures?&lt;/P&gt;&lt;P&gt;Thx a lot,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 13:57:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2323255#M58067</guid>
      <dc:creator>BenCardineau</dc:creator>
      <dc:date>2022-02-07T13:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic title using calculation group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2323620#M58096</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255731" data-lia-user-login="BenCardineau" class="lia-mention lia-mention-user"&gt;BenCardineau&lt;/a&gt;&amp;nbsp;-&lt;BR /&gt;Are you trying to use a Measure to define the Title Text?&amp;nbsp; If so, when you define the text string measure, you need to exclude it from your Calculation Group rules.&amp;nbsp; I&amp;nbsp;think you need to add a ISSELECTEDMEASURE() condition to your calculation groups so it focus on the Metric Measures only, and ignores String Measures.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;Metric Measure = SUM ( [Amount] )&lt;BR /&gt;Text Measure = IF ( SELECTEDVALUE ( [Project Type] , "Hours" ) = "Dollar" , "Project $", "Project Hours")&lt;BR /&gt;&lt;BR /&gt;In the calculation group expression, the following is required.&lt;BR /&gt;IF ( NOT( ISSELECTEDMEASURE( [Mertric Measure] ) ),&amp;nbsp;SELECTEDMEASURE() , IF (&amp;nbsp;SELECTEDVALUE ( [Project Type] , "Hours" ) , Use Dollars , Use Hours ) )&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In the Expression Format, the following is added.&lt;/P&gt;&lt;P&gt;IF ( NOT( ISSELECTEDMEASURE( [Mertric Measure] ) ), "" , IF (&amp;nbsp;SELECTEDVALUE ( [Project Type] , "Hours" ) , Use Dollars format , Use Hours format ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you find the right solution.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 16:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2323620#M58096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-07T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic title using calculation group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2325259#M58189</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;thx for your inputs! Yes, that's in essence what I had done... I replicated it in a brand new file (with exact same code as in the initial file), where it worked ok. After scratching my head around this for some time, I believe it's due to the fact that my initial file has RLS, and some roles in RLS do filter the 'Selection' field ("hours" or "$")... Do that make sense to you, that RLS may affect like this, even in desktop?&lt;/P&gt;&lt;P&gt;Anyway, thx again for your help!!&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 10:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2325259#M58189</guid>
      <dc:creator>BenCardineau</dc:creator>
      <dc:date>2022-02-08T10:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic title using calculation group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2761322#M85599</link>
      <description>&lt;P&gt;Hi Ben,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing a similar problem, did the solution work for you? Or how did you fix this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help, as i am really stuck here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 08:57:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-title-using-calculation-group/m-p/2761322#M85599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-12T08:57:34Z</dc:date>
    </item>
  </channel>
</rss>

