<?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 Dax Calculation to show current year and variance data in a single measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2885431#M93512</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are preparing an indirect method of the cash flow&amp;nbsp;statement from the general ledger data.&amp;nbsp; I will insert the table image of general ledger data and cash flow mapping.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;General ledger data sample image&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Cash flow mapping image&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;&lt;P&gt;In cashflow mapping, we have mentioned the direct and indirect connections of financial nodes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to show current year data to DIRECT cashflow bucket list items and also we need to show Variance (Current year- last year) for INDIRECT cashflow bucket lists item.&amp;nbsp; In the cash flow statement in a single column, we need to show current year and variance measure in a single column by using a dax measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Direct Connection&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dividend Income&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Amortization of software&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Depreciation&lt;/P&gt;&lt;P&gt;Bad debt expenses&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indirect Connection&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for bonuses&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for bonuses for directors (and other officers)&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits for directors (and other officers)&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits for directors (and other officers)&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for loss on guarantees&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for point card certificates&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship image&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the cash flow statement in a single column, we need to show the current year and variance measure in a single column by using a dax measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Community members, please suggest a way to solve this issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 11:10:26 GMT</pubDate>
    <dc:creator>Muthuramalingam</dc:creator>
    <dc:date>2022-11-04T11:10:26Z</dc:date>
    <item>
      <title>Dax Calculation to show current year and variance data in a single measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2885431#M93512</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are preparing an indirect method of the cash flow&amp;nbsp;statement from the general ledger data.&amp;nbsp; I will insert the table image of general ledger data and cash flow mapping.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;General ledger data sample image&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Cash flow mapping image&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;&lt;P&gt;In cashflow mapping, we have mentioned the direct and indirect connections of financial nodes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to show current year data to DIRECT cashflow bucket list items and also we need to show Variance (Current year- last year) for INDIRECT cashflow bucket lists item.&amp;nbsp; In the cash flow statement in a single column, we need to show current year and variance measure in a single column by using a dax measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Direct Connection&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dividend Income&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Amortization of software&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Depreciation&lt;/P&gt;&lt;P&gt;Bad debt expenses&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indirect Connection&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for bonuses&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for bonuses for directors (and other officers)&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits for directors (and other officers)&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for retirement benefits for directors (and other officers)&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for loss on guarantees&lt;/P&gt;&lt;P&gt;Increase (decrease) in provision for point card certificates&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relationship image&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the cash flow statement in a single column, we need to show the current year and variance measure in a single column by using a dax measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Community members, please suggest a way to solve this issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 11:10:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2885431#M93512</guid>
      <dc:creator>Muthuramalingam</dc:creator>
      <dc:date>2022-11-04T11:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation to show current year and variance data in a single measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2887029#M93616</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397482" data-lia-user-login="Muthuramalingam" class="lia-mention lia-mention-user"&gt;Muthuramalingam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit too much to read, I guess. Can you not break this down into smaller, more digestible chunks, please? As it currently stands, I have serious doubts someone will be willing to dissect this... but might be wrong &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Also, if I were you, I'd place a link to a file with sample data that demonstrates the issue. Otherwise, it'll be hard to deal with this, I suppose.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 14:09:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2887029#M93616</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-05T14:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation to show current year and variance data in a single measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2887644#M93656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="349489" data-lia-user-login="daXtreme" class="lia-mention lia-mention-user"&gt;daXtreme&lt;/a&gt;&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;Understood. Thanks for your reply.I will explain the issue shortly. Please go through the image. Financial accounts are in a single column and we mentioned the types of the accounts. For direct accounts, we want to show the current year data and for indirect accounts, we want to show the variance data. We need to show both data in a single column by using a single measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 16:58:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2887644#M93656</guid>
      <dc:creator>Muthuramalingam</dc:creator>
      <dc:date>2022-11-06T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation to show current year and variance data in a single measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2887743#M93662</link>
      <description>&lt;P&gt;OK, should this not be as easy as creating a measure that displays different numbers utilizing conditional logic via IF or SWITCH? The branching should be based on the type of the account...&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2022 19:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2887743#M93662</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-11-06T19:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation to show current year and variance data in a single measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2891476#M93864</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397482" data-lia-user-login="Muthuramalingam" class="lia-mention lia-mention-user"&gt;Muthuramalingam&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this method:&lt;/P&gt;
&lt;P&gt;Notice that your current and variance are both measures, so I create the data like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;New measure:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;Current = SUM('Table'[Current Year])&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;var = SUM('Table'[Variance])&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The two measures above are&amp;nbsp;simulated the measure you have.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The only measure you need to create by yourself is below:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT color="#FF0000"&gt;Result = IF(MAX('Table'[Type]) = "Direct", [Current], [var])&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;The result is:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you expect? Hope this helps you.&lt;/P&gt;
&lt;P&gt;Here is my PBIX file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Yinliw&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:36:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2891476#M93864</guid>
      <dc:creator>v-yinliw-msft</dc:creator>
      <dc:date>2022-11-08T08:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Calculation to show current year and variance data in a single measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2893212#M93981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437717" data-lia-user-login="v-yinliw-msft" class="lia-mention lia-mention-user"&gt;v-yinliw-msft&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you for your response. I have tried your dax its working perfectly.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 18:14:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Calculation-to-show-current-year-and-variance-data-in-a/m-p/2893212#M93981</guid>
      <dc:creator>Muthuramalingam</dc:creator>
      <dc:date>2022-11-08T18:14:00Z</dc:date>
    </item>
  </channel>
</rss>

