<?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: Displaying a Row as Fixed, when it's value needs to be manipilated in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/5189080#M188142</link>
    <description>&lt;P&gt;1. Power BI is throwing that decimal error because your source data actually contains the word "NULL" typed out. The engine can't do math on letters. You also have currency symbols ("R") and spaces muddying up the numbers.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Open Power Query Editor.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Find the Amount column in your ABC table. Make sure its data type is temporarily set to &lt;STRONG&gt;Text&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Right-click the header and select &lt;STRONG&gt;Replace Values&lt;/STRONG&gt;. Find NULL and replace it with nothing (leave the bottom box blank).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do another &lt;STRONG&gt;Replace Values&lt;/STRONG&gt; to remove the R and any spaces.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Change the column's data type to &lt;STRONG&gt;Decimal Number&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2. You can delete any relationship lines between your Pivot table and your ABC fact table in the model view. We are going to bypass the physical model entirely.&lt;/P&gt;&lt;P&gt;Drag Pivot[Roll_Up_Function] onto the rows of your matrix visual to generate the headers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;TotalAmount_Option3 =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;VAR CurrentItem = SELECTEDVALUE('Pivot'[CASHFLOW - Statutory basis])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;VAR NormalSum = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUM('ABC'[Amount]),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TREATAS( VALUES('Pivot'[CASHFLOW - Statutory basis]), 'ABC'[Roll_Up_Function] )&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; SWITCH(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE(),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CurrentItem = "Interco capital returned", 678,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NormalSum&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Did I solved your problem? Please mark this as solved and giev me a kudos.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2026 20:10:59 GMT</pubDate>
    <dc:creator>mizan2390</dc:creator>
    <dc:date>2026-05-26T20:10:59Z</dc:date>
    <item>
      <title>Displaying a Row as Fixed, when it's value needs to be manipilated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/3561695#M137285</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*I have trouble converting the data type of Column Amount in Source ABC to Decial/Numbers for this tutorial(help needed),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;img /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;see data&lt;/EM&gt; source:&lt;A href="https://drive.google.com/file/d/1VZJv8sPPYPcLiRKyO1fkEqbcsX-dz10P/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1VZJv8sPPYPcLiRKyO1fkEqbcsX-dz10P/view?usp=sharing&lt;/A&gt;&amp;nbsp;.&amp;nbsp; PBIX:&lt;A href="https://drive.google.com/file/d/1wfjbLI7nBLQU5-Qs5rGHOL2XP4uc0UR9/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1wfjbLI7nBLQU5-Qs5rGHOL2XP4uc0UR9/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to include rows in a Dax calculation from a mapping table(Pivot) to a fact table(ABC). The DAX is going to look at specific rows and bring those forward. The big issue is some rows are not present in the Fact table. I also need those rows to be displayed but their values to be manipulated.&lt;/P&gt;&lt;P&gt;An example is row "&lt;SPAN&gt;Interco capital returned&lt;/SPAN&gt;", which is not in the Fact Table(ABC), it should display a fixed value of "678"&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;&lt;LI-CODE lang="markup"&gt;TotalAmountForSelectedItems5 = 
CALCULATE(
    SUM('ABC'[Amount]),  // Corrected Column Reference
    'ABC'[Roll_Up_Function] IN {
        "Cash flow from ops - management",
        "Cash flow from trading",
        
        "Depreciation and amortisation",
        "IPEP expense",
        "Disposals &amp;amp; impairment of fixed assets",
        "Profit on disposal of pooling equipment",
        "Scrapped pooling equipment",
        "Impairment or valuation adjustment of pooling equipment",
        "Disposals or valuation adjustments of other fixed assets",
        "Other cash flow from trading adjustments",
        "Share-based payments expense",
        "Working capital mvts incl. provisions",
        "Working capital mvts excl. provisions",
        "Debtor movements",
        "Creditor movements",
        "Inventory movements",
        "Prepayment movements",
        "Provision movements",
        "Change in capex creditors",
        "Change in loss compensation balances",
        
        "Interco interest and guarantee fees",
        "Interco cash flows",
        "Interco royalties",
        "Statutory reallocations",
        "Internal restructuring",
        "Interco dividends Total",
        "Change in interco balances",
        "Change in interco recharge clearing",
        "FX on interco debt",
        "Interco capital returned"
    }
)&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="525058" data-lia-user-login="jpessoa8" class="lia-mention lia-mention-user"&gt;jpessoa8&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 18:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/3561695#M137285</guid>
      <dc:creator>Yrstruly2021</dc:creator>
      <dc:date>2023-11-30T18:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying a Row as Fixed, when it's value needs to be manipilated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/5186748#M188112</link>
      <description>&lt;P&gt;Rows like "Interco capital returned" disappear because your visual is driven by the fact table (ABC), so any row with no matching fact data simply doesn't show. The fix is to drive the rows from your mapping/template table (the Pivot) instead, and use a measure for the value - then every template row renders, even ones with no transactions, and you can override specific ones with a fixed value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Put the row label from the mapping table (not ABC) on the rows of the matrix, so all template rows are listed.&lt;/P&gt;
&lt;P&gt;2) Have a relationship from the mapping table to ABC on the matching key (or use TREATAS in the measure if a physical relationship isn't possible).&lt;/P&gt;
&lt;P&gt;3) Write the value as a measure that returns the fact sum normally but a fixed value for the special rows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Value =&lt;/P&gt;
&lt;P&gt;SWITCH(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; TRUE(),&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; SELECTEDVALUE(Map[Row]) = "Interco capital returned", 678,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; [TotalAmountForSelectedItems5]&amp;nbsp; &amp;nbsp;// your existing SUM over ABC&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the rows come from the mapping table, "Interco capital returned" shows up even though it isn't in ABC, and the SWITCH gives it the fixed 678 while every other row keeps its calculated total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the separate "can't convert Amount to Decimal" note: that's usually a locale / decimal-separator issue - use Transform &amp;gt; Data Type &amp;gt; Using Locale, pick Decimal Number with the locale that matches the source (or strip currency symbols/spaces first).&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 08:00:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/5186748#M188112</guid>
      <dc:creator>freginier</dc:creator>
      <dc:date>2026-05-21T08:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying a Row as Fixed, when it's value needs to be manipilated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/5189080#M188142</link>
      <description>&lt;P&gt;1. Power BI is throwing that decimal error because your source data actually contains the word "NULL" typed out. The engine can't do math on letters. You also have currency symbols ("R") and spaces muddying up the numbers.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Open Power Query Editor.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Find the Amount column in your ABC table. Make sure its data type is temporarily set to &lt;STRONG&gt;Text&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Right-click the header and select &lt;STRONG&gt;Replace Values&lt;/STRONG&gt;. Find NULL and replace it with nothing (leave the bottom box blank).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do another &lt;STRONG&gt;Replace Values&lt;/STRONG&gt; to remove the R and any spaces.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Change the column's data type to &lt;STRONG&gt;Decimal Number&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2. You can delete any relationship lines between your Pivot table and your ABC fact table in the model view. We are going to bypass the physical model entirely.&lt;/P&gt;&lt;P&gt;Drag Pivot[Roll_Up_Function] onto the rows of your matrix visual to generate the headers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;TotalAmount_Option3 =&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;VAR CurrentItem = SELECTEDVALUE('Pivot'[CASHFLOW - Statutory basis])&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;VAR NormalSum = &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUM('ABC'[Amount]),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TREATAS( VALUES('Pivot'[CASHFLOW - Statutory basis]), 'ABC'[Roll_Up_Function] )&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;STRONG&gt;RETURN&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; SWITCH(&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TRUE(),&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CurrentItem = "Interco capital returned", 678,&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NormalSum&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; )&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Did I solved your problem? Please mark this as solved and giev me a kudos.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 20:10:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Displaying-a-Row-as-Fixed-when-it-s-value-needs-to-be/m-p/5189080#M188142</guid>
      <dc:creator>mizan2390</dc:creator>
      <dc:date>2026-05-26T20:10:59Z</dc:date>
    </item>
  </channel>
</rss>

