<?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: Cash flow imbalance n DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3708017#M144244</link>
    <description>&lt;P&gt;When i want to incorporate many DAX codes into one big code, how would i approach this? I believe i use SWITCH or something miliar?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cash Share Issues by Brambles Limited = 
SUMX(
    FILTER(
        'ZTBR',
        'ZTBR'[Roll_Up_Function] = "Cash share issues by Brambles Limited"
    ),
    'ZTBR'[Amount in USD]
)

FX on Foreign Currency Denominated Debt = 
SUMX(
    FILTER(
        'ZTBR',
        'ZTBR'[Roll_Up_Function] = "FX on foreign currency denominated debt"
    ),
    'ZTBR'[Amount in USD]
)
Cost Sharing Payments to Brambles Limited = 
SUMX(
    FILTER(
        'ZTBR',
        'ZTBR'[Roll_Up_Function] = "Cost sharing payments to Brambles Limited"
    ),
    'ZTBR'[Amount in USD]
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 19 Feb 2024 12:44:42 GMT</pubDate>
    <dc:creator>Yrstruly2021</dc:creator>
    <dc:date>2024-02-19T12:44:42Z</dc:date>
    <item>
      <title>Cash flow imbalance n DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3704261#M144086</link>
      <description>&lt;P&gt;Please assist. The row&amp;nbsp;&lt;SPAN&gt;Cash flow imbalance should be 0 as indicated in the screenshot, below.&lt;/SPAN&gt;&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;&lt;SPAN&gt;I am not getting a 0.&amp;nbsp;Cash flow imbalance Is made up of calculations/formulas as seen in the Excel/Sheet file&lt;STRONG&gt; Column K&lt;/STRONG&gt;,&amp;nbsp;&lt;A href="https://docs.google.com/spreadsheets/d/1ubo9TAz2zzCpKbfO5SFBMjFLgjFtUxhY/edit?usp=sharing&amp;amp;ouid=104129043494164133703&amp;amp;rtpof=true&amp;amp;sd=true" target="_self"&gt;https://docs.google.com/spreadsheets/d/1ubo9TAz2zzCpKbfO5SFBMjFLgjFtUxhY/edit?usp=sharing&amp;amp;ouid=104129043494164133703&amp;amp;rtpof=true&amp;amp;sd=true&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To get the formula click in column K on the value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PBIX:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1-wHE0e50nSM9-wSq4dTxStDX58APO_MI/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1-wHE0e50nSM9-wSq4dTxStDX58APO_MI/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also getting a repeat of the amount 201256612.25, I don't know why. Some figures tend to differ when i work connected to the Live source on the Server as opposed to the downloaded version for the Desktop&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 14:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3704261#M144086</guid>
      <dc:creator>Yrstruly2021</dc:creator>
      <dc:date>2024-02-16T14:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cash flow imbalance n DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3706513#M144190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289633" data-lia-user-login="Yrstruly2021" class="lia-mention lia-mention-user"&gt;Yrstruly2021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Firstly for the value of your &lt;STRONG&gt;Cash flow imbalance not showing as 0&lt;/STRONG&gt;, I think you can do the following.&lt;BR /&gt;1. Check that the values in columns K15, K91 and K89 are accurate and correctly linked to the relevant data source.&lt;BR /&gt;2. You need to make sure that there are no hidden rows or filters affecting the calculation, and double-check the formulas in the cell where the cash flow imbalance is calculated.&lt;BR /&gt;If the problem persists, consider recalculating the entire worksheet or checking for circular references.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, there is a &lt;STRONG&gt;duplicate amount (201256612.25)&lt;/STRONG&gt;,&amp;nbsp;I think you can make the following checks and changes.&lt;/P&gt;
&lt;P&gt;You need to verify that the data source for this value is consistent. Check to see if any formulas or references are inadvertently duplicating the value. If you are using live data, make sure the data refresh process is working properly. Sometimes, data conversions can lead to unexpected results. Make sure there are no duplicate records or entries that cause duplication. It is also important to check that cell formats (e.g. currency, decimal places) are consistent.&lt;/P&gt;
&lt;P&gt;If the problem persists, consider comparing the live data source to the downloaded version to determine if there are any discrepancies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0in 0in 0in;"&gt;&lt;SPAN&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0in 0in 0in;"&gt;&lt;A title="https://community.powerbi.com/t5/community-blog/how-to-get-your-question-answered-quickly/ba-p/38490" href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to Get Your Question Answered Quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0in 0in 0in;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0in 0in 0in;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0in 0in 0in;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 01:54:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3706513#M144190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T01:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Cash flow imbalance n DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3708017#M144244</link>
      <description>&lt;P&gt;When i want to incorporate many DAX codes into one big code, how would i approach this? I believe i use SWITCH or something miliar?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Cash Share Issues by Brambles Limited = 
SUMX(
    FILTER(
        'ZTBR',
        'ZTBR'[Roll_Up_Function] = "Cash share issues by Brambles Limited"
    ),
    'ZTBR'[Amount in USD]
)

FX on Foreign Currency Denominated Debt = 
SUMX(
    FILTER(
        'ZTBR',
        'ZTBR'[Roll_Up_Function] = "FX on foreign currency denominated debt"
    ),
    'ZTBR'[Amount in USD]
)
Cost Sharing Payments to Brambles Limited = 
SUMX(
    FILTER(
        'ZTBR',
        'ZTBR'[Roll_Up_Function] = "Cost sharing payments to Brambles Limited"
    ),
    'ZTBR'[Amount in USD]
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Feb 2024 12:44:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3708017#M144244</guid>
      <dc:creator>Yrstruly2021</dc:creator>
      <dc:date>2024-02-19T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cash flow imbalance n DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3710244#M144358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="289633" data-lia-user-login="Yrstruly2021" class="lia-mention lia-mention-user"&gt;Yrstruly2021&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When combining multiple DAX expressions into one cohesive code, you can indeed use the SWITCH function, but it’s essential to consider the overall structure and logic of your calculations.&lt;/P&gt;
&lt;P&gt;Instead of having separate measures for each calculation, create a single measure that handles all three scenarios. You can use the SWITCH&amp;nbsp;function to evaluate different conditions and perform the appropriate calculation.&lt;/P&gt;
&lt;P&gt;Here’s an example of how you can combine your existing expressions into one using SWITCH.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Amount =
SWITCH (
    TRUE (),
    'ZTBR'[Roll_Up_Function] = "Cash share issues by Brambles Limited", SUMX ( 'ZTBR', 'ZTBR'[Amount in USD] ),
    'ZTBR'[Roll_Up_Function] = "FX on foreign currency denominated debt", SUMX ( 'ZTBR', 'ZTBR'[Amount in USD] ),
    'ZTBR'[Roll_Up_Function] = "Cost sharing payments to Brambles Limited", SUMX ( 'ZTBR', 'ZTBR'[Amount in USD] ),
    BLANK () // Default value if none of the conditions match
)&lt;/LI-CODE&gt;
&lt;P&gt;You can also read this document for the further study:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/switch-function-dax" target="_blank"&gt;SWITCH function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 08:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cash-flow-imbalance-n-DAX/m-p/3710244#M144358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-20T08:07:32Z</dc:date>
    </item>
  </channel>
</rss>

