<?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: How to show variance values for latest cal year values and revious cal year values in separate row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3177155#M114734</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;thank you so much for reply.&lt;/P&gt;&lt;P&gt;I have three queries here,&lt;/P&gt;&lt;P&gt;1. How did you apply that background color using the calculated measure? here i am using the matrix table for report creation, i tried with cell elements option but not working.&lt;/P&gt;&lt;P&gt;2. and how can i show the variance color on latest year only. not required for previous years.&lt;/P&gt;&lt;P&gt;3. How can i display variance in tooltip?&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2023 06:31:44 GMT</pubDate>
    <dc:creator>Kusaadigarla01</dc:creator>
    <dc:date>2023-04-07T06:31:44Z</dc:date>
    <item>
      <title>How to show variance values for latest cal year values and revious cal year values in separate row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3175811#M114629</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to show variance of latest calendar year values and Previous Calendar year values in separate row.&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;above table is created by using matrix table.&lt;/P&gt;&lt;P&gt;Note: Showing the color for variance in latest year also fine. example: if cal-2023 value is &amp;lt; cal-2022 value then we have to show the cal-2023 value in red else the values should appear in Green.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kusa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 11:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3175811#M114629</guid>
      <dc:creator>Kusaadigarla01</dc:creator>
      <dc:date>2023-04-06T11:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to show variance values for latest cal year values and revious cal year values in separate row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3176127#M114652</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210899" data-lia-user-login="Kusaadigarla01" class="lia-mention lia-mention-user"&gt;Kusaadigarla01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if i fully get you.&amp;nbsp;Supposing you have a table like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;you can plot a matrix visual like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now try to use a measure like below to conditionally format your value field:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _year = MAX(TableName[Year])
VAR _yearpre = _year-1
VAR _qty = SUM(TableName[Qty])
VAR _qtypre = 
CALCULATE(
    SUM(TableName[Qty]),
    TableName[Year] =_yearpre
)
RETURN
IF(
    _qty&amp;lt;_qtypre,
    "red","green"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3176127#M114652</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-04-06T14:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to show variance values for latest cal year values and revious cal year values in separate row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3177155#M114734</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;thank you so much for reply.&lt;/P&gt;&lt;P&gt;I have three queries here,&lt;/P&gt;&lt;P&gt;1. How did you apply that background color using the calculated measure? here i am using the matrix table for report creation, i tried with cell elements option but not working.&lt;/P&gt;&lt;P&gt;2. and how can i show the variance color on latest year only. not required for previous years.&lt;/P&gt;&lt;P&gt;3. How can i display variance in tooltip?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 06:31:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3177155#M114734</guid>
      <dc:creator>Kusaadigarla01</dc:creator>
      <dc:date>2023-04-07T06:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to show variance values for latest cal year values and revious cal year values in separate row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3177229#M114740</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="210899" data-lia-user-login="Kusaadigarla01" class="lia-mention lia-mention-user"&gt;Kusaadigarla01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2.try like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _year = MAX(TableName[Year])
VAR _yearpre = _year-1
VAR _yearmax = MAXX(ALL(TableName[Year]), TableName[Year])
VAR _qty = SUM(TableName[Qty])
VAR _qtypre = 
CALCULATE(
    SUM(TableName[Qty]),
    TableName[Year] =_yearpre
)
RETURN
IF(
    _year=_yearmax,
    IF(
     _qty&amp;lt;_qtypre,
     "red","green"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. tooltip is not supported in Matrix Visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 07:28:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3177229#M114740</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-04-07T07:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to show variance values for latest cal year values and revious cal year values in separate row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3183175#M115134</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;, It is really helpful even i can show the variance value in tooltip. But Stakeholder still wants to see the variance values of latest time period and its previous time period as separate row in the report.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 05:01:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3183175#M115134</guid>
      <dc:creator>Kusaadigarla01</dc:creator>
      <dc:date>2023-04-12T05:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to show variance values for latest cal year values and revious cal year values in separate row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3198414#M116182</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your help, User is okay to show the variance in color code. Still need your help to write variance dax for maximum month and its previous month as well. I am facing issues due to its date format in report (mmm-yyyy). Actual date format in db in dd/mmm/yyyy format, As per requirement changed the date format to mmm-yyyy. unable to write dax query for this date format. check the report format below.&amp;nbsp;&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;Regards,&lt;/P&gt;&lt;P&gt;Kusa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 15:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-variance-values-for-latest-cal-year-values-and/m-p/3198414#M116182</guid>
      <dc:creator>Kusaadigarla01</dc:creator>
      <dc:date>2023-04-20T15:39:07Z</dc:date>
    </item>
  </channel>
</rss>

