<?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 Calculate Average of Variance for Card Visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-Variance-for-Card-Visual/m-p/3237432#M157204</link>
    <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have a powerbi report which shows the unit size of the product as shown below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here the Variance Table is populated by using multiple Measures:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure Total size = SUM('Product Size'[Size in Unit])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where 'Product Size' is Table and [Size in Unit] is a Column&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure Previous Month size = CALCULATE([Total size], PARALLELPERIOD('Calendar Table'[Date].[Date], -1, MONTH))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure Variance = IF(OR(ISBLANK([Previous Month size]), ISBLANK([Total size])), BLANK(), ABS([Total size] - [Previous Month size]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This table calculates the variance compared to Previous Month. I have used the ABS function to get the Absolute Value (I do not require +ve or -ve sign) and I have also used an IF condition to remove the unwanted initial high value of the variance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have also created a relationship between a Calendar Table and Sales Table, hence used&amp;nbsp;&lt;STRONG&gt;'Calendar Table'[Date].[Date]&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp;&lt;STRONG&gt;PARALLELPERIOD&amp;nbsp;&lt;/STRONG&gt; Dax.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have populated the Trendline graph with it and also added the Average Line using 'Add Further Analysis' feature. I also need to display the Average of Variance in a Card Visual. Can anyone please help me in this..? I am not able to get the Average of Variance in Card Visual. Any help will be appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 16 May 2023 09:51:23 GMT</pubDate>
    <dc:creator>hjoshi4u26</dc:creator>
    <dc:date>2023-05-16T09:51:23Z</dc:date>
    <item>
      <title>Calculate Average of Variance for Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-Variance-for-Card-Visual/m-p/3237432#M157204</link>
      <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have a powerbi report which shows the unit size of the product as shown below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here the Variance Table is populated by using multiple Measures:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure Total size = SUM('Product Size'[Size in Unit])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;where 'Product Size' is Table and [Size in Unit] is a Column&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure Previous Month size = CALCULATE([Total size], PARALLELPERIOD('Calendar Table'[Date].[Date], -1, MONTH))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Measure Variance = IF(OR(ISBLANK([Previous Month size]), ISBLANK([Total size])), BLANK(), ABS([Total size] - [Previous Month size]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This table calculates the variance compared to Previous Month. I have used the ABS function to get the Absolute Value (I do not require +ve or -ve sign) and I have also used an IF condition to remove the unwanted initial high value of the variance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have also created a relationship between a Calendar Table and Sales Table, hence used&amp;nbsp;&lt;STRONG&gt;'Calendar Table'[Date].[Date]&amp;nbsp;&lt;/STRONG&gt;in&amp;nbsp;&lt;STRONG&gt;PARALLELPERIOD&amp;nbsp;&lt;/STRONG&gt; Dax.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have populated the Trendline graph with it and also added the Average Line using 'Add Further Analysis' feature. I also need to display the Average of Variance in a Card Visual. Can anyone please help me in this..? I am not able to get the Average of Variance in Card Visual. Any help will be appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 May 2023 09:51:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Average-of-Variance-for-Card-Visual/m-p/3237432#M157204</guid>
      <dc:creator>hjoshi4u26</dc:creator>
      <dc:date>2023-05-16T09:51:23Z</dc:date>
    </item>
  </channel>
</rss>

