<?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: Problem calculating flowfield in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841450#M184839</link>
    <description>&lt;P&gt;I think the issue is that when you are calling the [Completely Shipped] measure from within the FILTER clause&amp;nbsp;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;salesheader36'[&lt;/SPAN&gt;&lt;SPAN&gt;DocumentType] and&amp;nbsp;'salesheader36'[No] do not have single values so SELECTEDVALUE will return a blank.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Without knowing the relationships between tables it is difficult to suggest a solution, but I think the general approach would be to build a table variable containing document type and number and whether it is completely shipped or not, then get a distinct count from that table.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Oct 2025 10:51:45 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2025-10-03T10:51:45Z</dc:date>
    <item>
      <title>Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4840482#M184807</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,I have a problem calculating a flowfield (calculated column that cannot be exported) that comes from Business Central.&lt;BR /&gt;The formula for this flowfield in Visual Studio and with AL code is the following:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;field(5752; "Completely Shipped"; Boolean)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; CalcFormula = min("Sales Line"."Completely Shipped" where("Document Type" = field("Document Type"),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &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; "Document No." = field("No."),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &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; Type = filter(&amp;lt;&amp;gt; " "),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &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; "Location Code" = field("Location Filter")));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; Caption = 'Completely Shipped';&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; Editable = false;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; FieldClass = FlowField;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have replicated it like this in DAX:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Completely Shipped =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;V&lt;/SPAN&gt;&lt;SPAN&gt;AR&lt;/SPAN&gt; &lt;SPAN&gt;C&lt;/SPAN&gt;&lt;SPAN&gt;urrentDocumentType &lt;/SPAN&gt;&lt;SPAN&gt;= S&lt;/SPAN&gt;&lt;SPAN&gt;ELECTEDVALUE(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;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gt;&amp;nbsp; &amp;nbsp; MinCo&lt;/SPAN&gt;&lt;SPAN&gt;mpleta&lt;/SPAN&gt;&lt;SPAN&gt;do&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;I skipped the locationfilter part since it is a flowfilter that I was told is not necessary.The results of my DAX formula, when I apply it to the general formula, do not match the results in Business Central.&lt;BR /&gt;&lt;BR /&gt;Any ideas? I have tried many ways and it does not give me the result..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 08:19:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4840482#M184807</guid>
      <dc:creator>data_mp_97</dc:creator>
      <dc:date>2025-10-02T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4840509#M184808</link>
      <description>&lt;P&gt;If you are creating a calculated column then SELECTEDVALUE will not work - that works only in a filter context, not in a row context. If you are creating the column on the table 'salesheader36' then you can use&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Completely Shipped =
VAR CurrentDocumentType = 'salesheader36'[DocumentType]
VAR CurrentDocumentNo = 'salesheader36'[No]
VAR LineasFiltradas =
    FILTER (
        'salesline37',
        'salesline37'[DocumentType] = CurrentDocumentType
            &amp;amp;&amp;amp; 'salesline37'[DocumentNo] = CurrentDocumentNo
            &amp;amp;&amp;amp; 'salesline37'[Type] &amp;lt;&amp;gt; BLANK ()
    )
VAR MinCompletado =
    MINX ( LineasFiltradas, INT ( 'salesline37'[CompletelyShipped] ) )
RETURN
    MinCompletado
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Oct 2025 08:52:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4840509#M184808</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-10-02T08:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4840626#M184812</link>
      <description>&lt;P&gt;&lt;SPAN&gt;No, but I was creating a DAX measure (Completely Shipped), not a calculated column.Then I use that DAX measure here:&lt;BR /&gt;&lt;BR /&gt;VentasDistriNoAlbaranadas_Final22(CB)=&lt;BR /&gt;CALCULATE(DISTINCTCOUNT('salesheader36'[No]),&lt;BR /&gt;'salesheader36'[PostingDate] &amp;gt;= DATE(2025, 8, 1),&lt;BR /&gt;'salesheader36'[PostingDate] &amp;lt;= DATE(2025, 10, 2),&lt;BR /&gt;'salesheader36'[$Company] = "DIST",&lt;BR /&gt;FILTER('salesline37',[Completely Shipped] = 0))&lt;BR /&gt;&lt;BR /&gt;Maybe the error can be seen here..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 12:49:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4840626#M184812</guid>
      <dc:creator>data_mp_97</dc:creator>
      <dc:date>2025-10-02T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841209#M184829</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1366003" data-lia-user-login="data_mp_97" class="lia-mention lia-mention-user"&gt;data_mp_97&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can create a &lt;STRONG&gt;calculated column&lt;/STRONG&gt;&amp;nbsp;first,&lt;BR /&gt;Completely Shipped =&lt;BR /&gt;VAR CurrentDocumentType = 'salesheader36'[DocumentType]&lt;BR /&gt;VAR CurrentDocumentNo = 'salesheader36'[No]&lt;BR /&gt;VAR LineasFiltradas =&lt;BR /&gt;FILTER (&lt;BR /&gt;'salesline37',&lt;BR /&gt;'salesline37'[DocumentType] = CurrentDocumentType&lt;BR /&gt;&amp;amp;&amp;amp; 'salesline37'[DocumentNo] = CurrentDocumentNo&lt;BR /&gt;&amp;amp;&amp;amp; NOT ISBLANK ( 'salesline37'[Type] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;MINX ( LineasFiltradas, INT ( 'salesline37'[CompletelyShipped] ) )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and thn create a &lt;STRONG&gt;meausure&lt;/STRONG&gt; taking the calculated column base:-&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;VentasDistriNoAlbaranadas_Final22(CB) =&lt;BR /&gt;&lt;BR /&gt;CALCULATE (&lt;BR /&gt;DISTINCTCOUNT ( 'salesheader36'[No] ),&lt;BR /&gt;'salesheader36'[PostingDate] &amp;gt;= DATE ( 2025, 8, 1 ),&lt;BR /&gt;'salesheader36'[PostingDate] &amp;lt;= DATE ( 2025, 10, 2 ),&lt;BR /&gt;'salesheader36'[$Company] = "DIST",&lt;BR /&gt;'salesheader36'[Completely Shipped] = 0&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":military_medal:"&gt;🎖&lt;/span&gt; As a proud &lt;STRONG&gt;SuperUser&lt;/STRONG&gt; and &lt;STRONG&gt;Microsoft Partner&lt;/STRONG&gt;, we’re here to empower your data journey and the Power BI Community at large.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; Curious to explore more? &lt;SPAN&gt;&lt;A href="https://www.grazitti.com/services/data-science/solutions/data-visualization/?utm_source=community&amp;amp;utm_medium=powerbi-community&amp;amp;utm_campaign=Community-Outreach-By-Analytics" target="_blank"&gt;[Discover here]&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Let’s keep building smarter solutions together!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 07:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841209#M184829</guid>
      <dc:creator>grazitti_sapna</dc:creator>
      <dc:date>2025-10-03T07:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841211#M184830</link>
      <description>&lt;P&gt;Can you please share the error you got?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 07:45:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841211#M184830</guid>
      <dc:creator>grazitti_sapna</dc:creator>
      <dc:date>2025-10-03T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841450#M184839</link>
      <description>&lt;P&gt;I think the issue is that when you are calling the [Completely Shipped] measure from within the FILTER clause&amp;nbsp;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;salesheader36'[&lt;/SPAN&gt;&lt;SPAN&gt;DocumentType] and&amp;nbsp;'salesheader36'[No] do not have single values so SELECTEDVALUE will return a blank.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Without knowing the relationships between tables it is difficult to suggest a solution, but I think the general approach would be to build a table variable containing document type and number and whether it is completely shipped or not, then get a distinct count from that table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 10:51:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841450#M184839</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-10-03T10:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841868#M184853</link>
      <description>&lt;P&gt;Thankyou,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;, and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="546935" data-lia-user-login="grazitti_sapna" class="lia-mention lia-mention-user"&gt;grazitti_sapna&lt;/a&gt;, for your responses.&lt;BR /&gt;&lt;BR /&gt;Hi data_mp_97,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We appreciate your inquiry through the Microsoft Fabric Community Forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;Based on my understanding, the discrepancy arises because the Business Central FlowField is evaluated at the header level, that is, it computes the minimum of the related sales lines. In your DAX, the measure was being evaluated at the line level, which caused a context mismatch. In addition, the FlowField excludes empty Type values and may include a Location filter, which were not fully replicated in your measure.&lt;/DIV&gt;
&lt;DIV&gt;Please follow the suggested approach below which may help to resolve the issue:&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 1. Compute the FlowField logic at the header level and then apply it within your calculation, as shown:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;VentasDistriNoAlbaranadas_Final22(CB) =&lt;/DIV&gt;
&lt;DIV&gt;CALCULATE(&lt;/DIV&gt;
&lt;DIV&gt;DISTINCTCOUNT('salesheader36'[No]),&lt;/DIV&gt;
&lt;DIV&gt;'salesheader36'[PostingDate] &amp;gt;= DATE(2025, 8, 1),&lt;/DIV&gt;
&lt;DIV&gt;'salesheader36'[PostingDate] &amp;lt;= DATE(2025, 10, 2),&lt;/DIV&gt;
&lt;DIV&gt;'salesheader36'[$Company] = "DIST",&lt;/DIV&gt;
&lt;DIV&gt;FILTER (&lt;/DIV&gt;
&lt;DIV&gt;VALUES('salesheader36'[No]),&lt;/DIV&gt;
&lt;DIV&gt;VAR MinComp =&lt;/DIV&gt;
&lt;DIV&gt;CALCULATE(&lt;/DIV&gt;
&lt;DIV&gt;MINX(&lt;/DIV&gt;
&lt;DIV&gt;FILTER (&lt;/DIV&gt;
&lt;DIV&gt;'salesline37',&lt;/DIV&gt;
&lt;DIV&gt;TRIM(COALESCE('salesline37'[Type], "")) &amp;lt;&amp;gt; ""&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp;&amp;amp; 'salesline37'[LocationCode] = SELECTEDVALUE(LocationTable[LocationCode])&lt;/DIV&gt;
&lt;DIV&gt;),&lt;/DIV&gt;
&lt;DIV&gt;IF('salesline37'[CompletelyShipped],1,0)&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;DIV&gt;RETURN COALESCE(MinComp, 0) = 0&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;DIV&gt;)&lt;/DIV&gt;
&lt;DIV&gt;Using VALUES('salesheader36'[No]) ensures that the calculation is performed per header, analogous to FlowFields in Business Central. The inner MINX replicates the FlowField’s minimum across related sales lines. The TRIM(COALESCE(...)) &amp;lt;&amp;gt; "" expression corresponds to Business Central’s Type &amp;lt;&amp;gt; " " condition.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;For further details, please refer to the link below:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-flowfields" target="_blank"&gt;FlowFields overview - Business Central | Microsoft Learn&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;We hope this information helps to resolve the issue. If you have any further queries, please feel free to contact the Microsoft Fabric Community.&lt;/DIV&gt;
&lt;DIV&gt;Thank you.&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Oct 2025 17:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4841868#M184853</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-10-03T17:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4843702#M184889</link>
      <description>&lt;P&gt;Hi data_mp_97,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would like to follow up and see whether the details we shared have resolved your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need any more assistance, please feel free to connect with the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 16:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4843702#M184889</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-10-06T16:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4846709#M184962</link>
      <description>&lt;P&gt;Hi data_mp_97,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 12:20:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4846709#M184962</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-10-09T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem calculating flowfield in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4848245#M185017</link>
      <description>&lt;P&gt;Hi data_mp_97,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We wanted to see if the information we gave helped fix your problem. If you need more help, please feel free to contact the Microsoft Fabric community.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Oct 2025 13:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-calculating-flowfield-in-DAX/m-p/4848245#M185017</guid>
      <dc:creator>v-pnaroju-msft</dc:creator>
      <dc:date>2025-10-12T13:10:25Z</dc:date>
    </item>
  </channel>
</rss>

