<?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 debug DAX measure that result in table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4415070#M175326</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;I use DAX Query View for debugging my DAX expressions. Here is a screenshot of working with DAX Query View:&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;You may watch the following video to understand how to work with DAX Query View:&lt;BR /&gt;&lt;A href="https://youtu.be/hiBRhmX-pbM?si=zweZNtl61Eog5elj" target="_self"&gt;Unboxing DAX Query View in Power BI - Unplugged #54&lt;/A&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;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn || &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube || &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium || &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #033f38;"&gt;Proud to be a Super User&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2025 06:23:10 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2025-02-18T06:23:10Z</dc:date>
    <item>
      <title>How to debug DAX measure that result in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4414967#M175322</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the subject says, am wondering if there's a way to know the result/output of a measure that resulted in a table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I have a measure below, as you can see, I have _table1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to break down the formula and see the output, from FILTER function, all the way to the AddColumns, is there a way to do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEASURE =
VAR _obj =
    SELECTEDVALUE ( 'Table'[obj code] )
VAR _cost =
    SELECTEDVALUE ( 'Table'[cost code] )
VAR _id =
    SELECTEDVALUE ( 'Table'[id] )
VAR _table1 =
    ADDCOLUMNS (
        'tbl_Tier1',
        "c1",
            SUMX (
                FILTER (
                    mirrorFactTableWithAllCostCodes,
                    [id] = EARLIER ( tbl_Tier1[T1_From] )
                        &amp;amp;&amp;amp; [obj code] = _obj
                        &amp;amp;&amp;amp; [cost code] = _cost
                ),
                [Column]
            ) * [T1_Alloc]
    )
VAR _table2 =
    ADDCOLUMNS (
        'tbl_Tier2',
        "c1",
            VAR _result =
                (
                    SUMX ( FILTER ( _table1, [T1_To] = EARLIER ( tbl_Tier2[T2_From] ) ), [c1] )
                        + SUMX (
                            FILTER (
                                'mirrorFactTableWithAllCostCodes',
                                [id] = EARLIER ( tbl_Tier2[T2_From] )
                                    &amp;amp;&amp;amp; [obj code] = _obj
                                    &amp;amp;&amp;amp; [cost code] = _cost
                            ),
                            [Column]
                        )
                ) * [T2_Alloc]
            RETURN
                IF ( ISBLANK ( _result ), 0, _result )
    )
VAR _table3 =
    ADDCOLUMNS (
        'tbl_Tier3',
        "c1",
            VAR _result =
                (
                    SUMX ( FILTER ( _table2, [T2_To] = EARLIER ( tbl_Tier3[T3_From] ) ), [c1] )
                        + SUMX (
                            FILTER (
                                'mirrorFactTableWithAllCostCodes',
                                [id] = EARLIER ( tbl_Tier3[T3_From] )
                                    &amp;amp;&amp;amp; [obj code] = _obj
                                    &amp;amp;&amp;amp; [cost code] = _cost
                            ),
                            [Column]
                        )
                ) * [T3_Alloc]
            RETURN
                IF ( ISBLANK ( _result ), 0, _result )
    )
RETURN
    SUMX ( FILTER ( _table3, [T3_To] = _id ), [c1] )
        + SUMX (
            FILTER (
                'mirrorFactTableWithAllCostCodes',
                [id] = _id
                    &amp;amp;&amp;amp; [cost code] = _cost
                    &amp;amp;&amp;amp; [obj code] = _obj
            ),
            [Column]
        )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Feb 2025 05:32:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4414967#M175322</guid>
      <dc:creator>JustDavid</dc:creator>
      <dc:date>2025-02-18T05:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug DAX measure that result in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4415052#M175325</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="566436" data-lia-user-login="JustDavid" class="lia-mention lia-mention-user"&gt;JustDavid&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I use the TOCSV function which concatenates the values shows as a scaler value&lt;BR /&gt;Here is an example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TOCSV ( VALUES ( 'Date'[Calendar Year Quarter] ) )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;More on his function:&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dax/tocsv-function-dax" target="_blank"&gt;TOCSV function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:18:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4415052#M175325</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2025-02-18T06:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug DAX measure that result in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4415070#M175326</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;I use DAX Query View for debugging my DAX expressions. Here is a screenshot of working with DAX Query View:&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;You may watch the following video to understand how to work with DAX Query View:&lt;BR /&gt;&lt;A href="https://youtu.be/hiBRhmX-pbM?si=zweZNtl61Eog5elj" target="_self"&gt;Unboxing DAX Query View in Power BI - Unplugged #54&lt;/A&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;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn || &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube || &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium || &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style="color: #033f38;"&gt;Proud to be a Super User&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 06:23:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4415070#M175326</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2025-02-18T06:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug DAX measure that result in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4416042#M175349</link>
      <description>&lt;P&gt;Thank you both&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt; and &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="52518" data-lia-user-login="Fowmy" class="lia-mention lia-mention-user"&gt;Fowmy&lt;/a&gt;. I'll have a look at both&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 14:08:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-debug-DAX-measure-that-result-in-table/m-p/4416042#M175349</guid>
      <dc:creator>JustDavid</dc:creator>
      <dc:date>2025-02-18T14:08:52Z</dc:date>
    </item>
  </channel>
</rss>

