<?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: Show Values as % of Grand Total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271115#M169397</link>
    <description>&lt;P&gt;Hey Selva,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I do with that measure exactly?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 17:19:00 GMT</pubDate>
    <dc:creator>e175429</dc:creator>
    <dc:date>2024-11-05T17:19:00Z</dc:date>
    <item>
      <title>Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4270925#M169378</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my graph, seperated by fiscal year:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the data labels, instead of whole numbers i would like it to show as&amp;nbsp;% of Grand Total, like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; However, BI is summing ALL the values of the whole graph, which is 2165, to get the %'s instead of aumming the years independently, which is giving incorrect %'s.&lt;/P&gt;&lt;P&gt;The total for FY2021 is 66.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The total for FY2022 is 965&lt;/P&gt;&lt;P&gt;FY 2023 is 1134.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for "Not at all long" FY2021 should be 71%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;FY2022 should be 63%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So on and so forth.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the data I am using.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.google.com/spreadsheets/d/1kQk0gRoMBUQ8qEpx6pfZZIm5FGLmvwfmNLqSxZeivH8/edit?usp=sharing" target="_blank"&gt;https://docs.google.com/spreadsheets/d/1kQk0gRoMBUQ8qEpx6pfZZIm5FGLmvwfmNLqSxZeivH8/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help on steps to get what I need would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 15:19:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4270925#M169378</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-11-05T15:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4270994#M169385</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;P&gt;% of yearly total =&lt;/P&gt;
&lt;P&gt;DIVIDE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; SUM(data[value]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM(data[value]),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ALLEXCEPT(data, data[year])&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:10:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4270994#M169385</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-05T16:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271026#M169387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can write a measure as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_resp&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&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;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;If this post helps, then I would appreciate a thumbs up&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:31:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271026#M169387</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-11-05T16:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271032#M169388</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;- You can use the following DAX in a measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% in year = 

VAR num = COUNTROWS( Sheet1 )
VAR denom = CALCULATE( [count], ALL( Sheet1[Response]))

RETURN DIVIDE( num, denom )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This respects the filter of year, quarter or question, in your small multiples but for the denominator it removes the filter of Response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this works for you, please accept it as the solution, to help for visibility for others.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 16:34:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271032#M169388</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-11-05T16:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271109#M169395</link>
      <description>&lt;P&gt;I'm not sure what this means in your measure&lt;/P&gt;&lt;PRE&gt;[count]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271109#M169395</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-11-05T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271115#M169397</link>
      <description>&lt;P&gt;Hey Selva,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I do with that measure exactly?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271115#M169397</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-11-05T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271119#M169398</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp; - Sorry, that should be the original measure you have created, in my test file I have created this measure to define [count]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;count =

COUNTROWS( Sheet1 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you could actually do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;% in year = 

Var num = [count]
VAR denom = CALCULATE( [count], ALL( Sheet1[Response]))

RETURN DIVIDE( num, denom )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically I saying that you should create two different measures. The measure [count] is a replacement for where you are using a count of your "How long was....." column&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:25:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271119#M169398</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-11-05T17:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271122#M169399</link>
      <description>&lt;P&gt;I see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do I put that measure? How do I apply it to the graph?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271122#M169399</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-11-05T17:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271125#M169401</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;add the measure to y-axis! and also you can add it to tooltip&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271125#M169401</guid>
      <dc:creator>Selva-Salimi</dc:creator>
      <dc:date>2024-11-05T17:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271128#M169402</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;- if you only want to see the % values, you can leave it out, it will just be referenced automatically when the % measure is invoked.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's what is known as measure branching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To apply my % of year measure, take out the&amp;nbsp;&lt;SPAN&gt;count of your "How long was....." column and add the new measure to the Y-axis.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271128#M169402</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-11-05T17:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271138#M169404</link>
      <description>&lt;P&gt;Thank you very much. This worked.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271138#M169404</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-11-05T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271139#M169405</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you very much. This worked.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:35:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271139#M169405</guid>
      <dc:creator>e175429</dc:creator>
      <dc:date>2024-11-05T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Show Values as % of Grand Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271140#M169406</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="531109" data-lia-user-login="e175429" class="lia-mention lia-mention-user"&gt;e175429&lt;/a&gt;&amp;nbsp;- My pleasure!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 17:35:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-Values-as-of-Grand-Total/m-p/4271140#M169406</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-11-05T17:35:29Z</dc:date>
    </item>
  </channel>
</rss>

