<?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: Change percentage of a card based on 2 visualization in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2346644#M59373</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358963" data-lia-user-login="ahmedusam" class="lia-mention lia-mention-user"&gt;ahmedusam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try to create a measure like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var one_year = CALCULATE(SUM(financials[ Sales]),FILTER(financials,YEAR(financials[Date])=2020))
return DIVIDE(SUM(financials[ Sales]),one_year)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the problem still exists, please remove the sensitive data and share a sample pbix.&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_self"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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>Fri, 18 Feb 2022 06:02:57 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2022-02-18T06:02:57Z</dc:date>
    <item>
      <title>Change percentage of a card based on 2 visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2338464#M58961</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;So I have this created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. When I click the bar chart, I want the percentage on the card to be based on the data in the bar chart. For example, when i click completed from the bar chart, i want the card to show percentage of audits completed during the year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Then, I want the same card to change percentage when i click random items from the table below based on the percentage each task has completed. -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 04:27:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2338464#M58961</guid>
      <dc:creator>ahmedusam</dc:creator>
      <dc:date>2022-02-15T04:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change percentage of a card based on 2 visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2338502#M58964</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358963" data-lia-user-login="ahmedusam" class="lia-mention lia-mention-user"&gt;ahmedusam&lt;/a&gt; , Assume you are using measure M1 on visual &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then try a measure like&lt;/P&gt;
&lt;P&gt;divide([M1], calculate([M1], allselected() ))&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 04:43:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2338502#M58964</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-15T04:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change percentage of a card based on 2 visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2346644#M59373</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358963" data-lia-user-login="ahmedusam" class="lia-mention lia-mention-user"&gt;ahmedusam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try to create a measure like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var one_year = CALCULATE(SUM(financials[ Sales]),FILTER(financials,YEAR(financials[Date])=2020))
return DIVIDE(SUM(financials[ Sales]),one_year)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the problem still exists, please remove the sensitive data and share a sample pbix.&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_self"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&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>Fri, 18 Feb 2022 06:02:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Change-percentage-of-a-card-based-on-2-visualization/m-p/2346644#M59373</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2022-02-18T06:02:57Z</dc:date>
    </item>
  </channel>
</rss>

