<?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 YoY percentage % in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098472#M162630</link>
    <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/LI-USER&gt;, try this code,&amp;nbsp;and if you encounter any issues, let me know.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YoY % = 
IF(
    ISBLANK([RiderSelectedYear]) || ISBLANK([RiderSelected2ndYear]),
    BLANK(),
    DIVIDE([RiderSelectedYear], [RiderSelected2ndYear], 0)
)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 13 Aug 2024 19:31:51 GMT</pubDate>
    <dc:creator>ahadkarimi</dc:creator>
    <dc:date>2024-08-13T19:31:51Z</dc:date>
    <item>
      <title>Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4097895#M162605</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've searched mulitple posts on this forum to try to solve this problem and I have had no luck so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to calculate a percentage change of different fiscal years based on the slicer selection. However, I keep getting this (Blank) error when I select different years. When the same year is selected, the value is 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I edited the interactions on the slicers so that I can select multiple years referencing the same calendar (which is called 'xFY Calendar').&lt;BR /&gt;&lt;BR /&gt;any help/suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 15:01:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4097895#M162605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T15:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098472#M162630</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/LI-USER&gt;, try this code,&amp;nbsp;and if you encounter any issues, let me know.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YoY % = 
IF(
    ISBLANK([RiderSelectedYear]) || ISBLANK([RiderSelected2ndYear]),
    BLANK(),
    DIVIDE([RiderSelectedYear], [RiderSelected2ndYear], 0)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 13 Aug 2024 19:31:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098472#M162630</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-13T19:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098494#M162632</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="785426" data-lia-user-login="ahadkarimi" class="lia-mention lia-mention-user"&gt;ahadkarimi&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm still getting the same error. Let me know if you need me to share my dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 19:46:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098494#M162632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T19:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098500#M162633</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;yes, please share your dashboard, and I'll help you troubleshoot the error.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 19:48:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098500#M162633</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-13T19:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098519#M162639</link>
      <description>&lt;P&gt;&lt;A href="https://app.powerbi.com/groups/me/reports/b011633c-404f-4297-9b2f-a5eee933e07d/ReportSectioncb9ff538a6edec19730c?experience=power-bi" target="_blank"&gt;https://app.powerbi.com/groups/me/reports/b011633c-404f-4297-9b2f-a5eee933e07d/ReportSectioncb9ff538a6edec19730c?experience=power-bi&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;let me know if you can't access it.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 20:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098519#M162639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-13T20:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098524#M162640</link>
      <description>&lt;P&gt;Yes, I have no access.&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 20:07:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098524#M162640</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-13T20:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098529#M162642</link>
      <description>&lt;P&gt;you can share it in microsoft onedrive or google drive and put it here or send it by mail to ahad.karimi8@gmail.com&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 20:14:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4098529#M162642</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-13T20:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4100271#M162710</link>
      <description>&lt;P&gt;let me know if this works, I saved it onto a google drive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1il0EgIIT4H_8D7t6bzuim_vALyTxRpKH/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1il0EgIIT4H_8D7t6bzuim_vALyTxRpKH/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 13:11:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4100271#M162710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-14T13:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4100772#M162730</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&amp;nbsp;could you please check the &lt;STRONG&gt;RiderSelectedYear&lt;/STRONG&gt; and &lt;STRONG&gt;RiderSelected2ndYear&lt;/STRONG&gt; measures to see if they are correct?&lt;/P&gt;&lt;P&gt;for testing, you can add a table from the Visualization pane, include these two measures in the table, and review the values according to the slicer selections (are those correct?).&lt;/P&gt;&lt;P&gt;I suspect that the issue might be with the &lt;STRONG&gt;RiderSelectedYear&lt;/STRONG&gt; and &lt;STRONG&gt;RiderSelected2ndYear&lt;/STRONG&gt; measures. Could you verify and let me know if any problems still persist?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 18:07:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4100772#M162730</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-14T18:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4100821#M162731</link>
      <description>&lt;P&gt;Hello, I just checked and the measures don't show up on the table if both slicers are selected. Do you have an alternative solution to the RiderSelect measures? do you think I need to reference another data set since it appears that selecting two years from the same dataset cancels them out?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 18:40:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4100821#M162731</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-14T18:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4101425#M162752</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/a&gt;, make the following changes for the 2nd year:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RiderSelected2ndYear = 
VAR SelectedYearNumber = VALUE(RIGHT(SELECTEDVALUE('xFY Calender'[FY]), 2))
VAR PreviousYearNumber = SelectedYearNumber - 1
VAR PreviousFY = "FY" &amp;amp; FORMAT(PreviousYearNumber, "00")
RETURN
CALCULATE(
    [TotalRiders],
    FILTER(
        ALL('xFY Calender'[FY]),
        'xFY Calender'[FY] = PreviousFY
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you would like to display a dash (-) instead of 'Blank' in the card, use the code below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YoY % = 
IF(
    ISBLANK([RiderSelectedYear]) || ISBLANK([RiderSelected2ndYear]),
    "-",
    DIVIDE([RiderSelectedYear], [RiderSelected2ndYear], 0)
)&lt;/LI-CODE&gt;&lt;P&gt;Please let me know what happend and if there are any issues.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 03:30:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4101425#M162752</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-15T03:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4102602#M162797</link>
      <description>&lt;P&gt;Hello, this solution above works. I was hoping that the YoY% measure would be able to work by selecting any fiscal year instead of only the year prior but I suppose Power BI is limited in that way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your effort and your steady communication with me!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 15:04:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4102602#M162797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-15T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic YoY percentage %</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4103062#M162816</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; you're very welcome! I'm happy to help and always here whenever you need me.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2024 21:33:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-YoY-percentage/m-p/4103062#M162816</guid>
      <dc:creator>ahadkarimi</dc:creator>
      <dc:date>2024-08-15T21:33:35Z</dc:date>
    </item>
  </channel>
</rss>

