<?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 Pourcentage and latest date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3766141#M146976</link>
    <description>&lt;P&gt;Hello Guys!&lt;/P&gt;&lt;P&gt;Please i need your help&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to calculate and display the vaccination percentage for only the latest date for each count&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below exemple of my data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 11:08:28 GMT</pubDate>
    <dc:creator>dofrancis3</dc:creator>
    <dc:date>2024-03-15T11:08:28Z</dc:date>
    <item>
      <title>Pourcentage and latest date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3766141#M146976</link>
      <description>&lt;P&gt;Hello Guys!&lt;/P&gt;&lt;P&gt;Please i need your help&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to calculate and display the vaccination percentage for only the latest date for each count&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Below exemple of my data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 11:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3766141#M146976</guid>
      <dc:creator>dofrancis3</dc:creator>
      <dc:date>2024-03-15T11:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pourcentage and latest date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3767052#M147080</link>
      <description>&lt;P&gt;Do you want to do that in DAX or in Power Query?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 15:33:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3767052#M147080</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-15T15:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pourcentage and latest date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3770055#M147240</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683724" data-lia-user-login="dofrancis3" class="lia-mention lia-mention-user"&gt;dofrancis3&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Here some steps that I want to share, you can check them if they suitable for your requirement.&lt;BR /&gt;Here is my test data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create two dax&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LastDate = 
CALCULATE(
    MAX('Table'[Date of vaccination]),
    ALLEXCEPT(
        'Table',
        'Table'[Country]
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Percentage = 
VAR _number = 
CALCULATE(
    MAX('Table'[Number of vaccinated]),
    FILTER(
        'Table',
        SELECTEDVALUE('Table'[Date of vaccination]) = [LastDate]
    )
)
VAR SumByCountry = 
CALCULATE(
    SUM('Table'[Number of vaccinated]),
    ALLEXCEPT(
        'Table',
        'Table'[Country]
    )
)
RETURN
_number / SumByCountry&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Albert He&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 05:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3770055#M147240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-18T05:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pourcentage and latest date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3772167#M147379</link>
      <description>&lt;P&gt;Hi Guys!&lt;/P&gt;&lt;P&gt;I would like to extract (display) the percentage of vaccination for the latest date for each country.&lt;/P&gt;&lt;P&gt;Please the screen below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 16:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3772167#M147379</guid>
      <dc:creator>dofrancis3</dc:creator>
      <dc:date>2024-03-18T16:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pourcentage and latest date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3772173#M147380</link>
      <description>&lt;P&gt;You can do that with grouping in Power Query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 16:46:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3772173#M147380</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-18T16:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pourcentage and latest date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3772844#M147428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="683724" data-lia-user-login="dofrancis3" class="lia-mention lia-mention-user"&gt;dofrancis3&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Thanks for the new data, here are my changes to the second MEASURE:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage = 
CALCULATE(
    MAX('Table'[Number of vaccinated]),
    FILTER(
        'Table',
        SELECTEDVALUE('Table'[Date of vaccination]) = [LastDate]
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Albert He&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 01:18:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Pourcentage-and-latest-date/m-p/3772844#M147428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-19T01:18:00Z</dc:date>
    </item>
  </channel>
</rss>

