<?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: DAX Measure with multiple conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4387499#M174176</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="831764" data-lia-user-login="Roland74" class="lia-mention lia-mention-user"&gt;Roland74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your problem been resolved? If so, could you mark the corresponding reply as the solution so that others with similar issues can benefit from it?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 06:42:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-30T06:42:33Z</dc:date>
    <item>
      <title>DAX Measure with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4384503#M174033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm struggling to create a measure with multiple conditions. Hope you can help!&lt;/P&gt;&lt;P&gt;I'm on direct query, can't easily change the model. I've created a sample, and the model looks like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The objective is to create a table, and when the user selects a month, the correct value shows. But not for every month i have a value in the fact-table. The conditions the measure has to have:&lt;BR /&gt;(1) In the DIM-ProjectPreclosure the field 'Posted' must be TRUE&lt;/P&gt;&lt;P&gt;(2) If a date has 2 or more rows in the fact-table, the one with the highest Line-number in de DIM-ProjectPreclosure is right.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;In the example, Prj. A has two values om 30/06/2024, the one with linenumber 70000 is the right one&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;(3) Months before the first postingdate are 'empty'. In the previous example, the first postingdate is february, so january is empty.&lt;/P&gt;&lt;P&gt;(4) Missing months get the value of the latest month. Example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Project B has a value for february, but the next postingdate with TRUE is in July. So march, april, may and june get the value of&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;february&lt;/P&gt;&lt;P&gt;(5) In the example of project A, in June a value was posted which is not yet corrected (correctionposted = False). In the months after june until now the june-number has to be reported&lt;/P&gt;&lt;P&gt;(6) If the correction is posted (correctionPosted = TRUE) AND de CorrectionDate is N/A, the value has to be reported until the latest month. Example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Project C has Linenumber 30000 posted in March. This line is corrected in July (DateModified = 26/07/2024).&lt;/P&gt;&lt;P&gt;The value of Line 30000 has to be reported in the months March, April, May and June. In July it's empty, because it's corrected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can point me in the right directions. I've got all the single values, but struggle to get it into one measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:07:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4384503#M174033</guid>
      <dc:creator>Roland74</dc:creator>
      <dc:date>2025-01-28T14:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4384547#M174034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="831764" data-lia-user-login="Roland74" class="lia-mention lia-mention-user"&gt;Roland74&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a DAX measure that satisfies the specified conditions, we first filter the data to include only rows where Posted = TRUE. For dates with multiple rows, we identify the row with the highest LineNumber using SUMMARIZE. To exclude months before the first posting date, we calculate the minimum posting date per project using CALCULATE with a MIN filter. Missing months are handled by propagating the latest valid value using a filter on dates up to the current month. For corrections, if CorrectionPosted = FALSE, the last valid value is propagated; if CorrectionPosted = TRUE and CorrectionDate is N/A, the value is propagated; otherwise, it stops after the correction date. Below is the combined DAX formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FinalMeasure =
VAR PostedData =
    FILTER(
        'DIM_ProjectPreclosure',
        'DIM_ProjectPreclosure'[Posted] = TRUE
    )

VAR MaxLinePerDate =
    SUMMARIZE(
        PostedData,
        'DIM_ProjectPreclosure'[Date],
        "MaxLineNumber", MAX('DIM_ProjectPreclosure'[LineNumber])
    )

VAR FirstPostingDate =
    CALCULATE(
        MIN('DIM_ProjectPreclosure'[Date]),
        FILTER(PostedData, 'DIM_ProjectPreclosure'[Posted] = TRUE)
    )

VAR LastValue =
    MAXX(
        FILTER(
            PostedData,
            'DIM_ProjectPreclosure'[Date] &amp;lt;= MAX('Calendar'[Date])
        ),
        'DIM_ProjectPreclosure'[Value]
    )

VAR CorrectionLogic =
    IF(
        'DIM_ProjectPreclosure'[CorrectionPosted] = TRUE,
        IF(
            ISBLANK('DIM_ProjectPreclosure'[CorrectionDate]),
            LastValue,
            BLANK()
        ),
        LastValue
    )

RETURN
IF(
    MAX('Calendar'[Date]) &amp;lt; FirstPostingDate,
    BLANK(),
    CorrectionLogic
)

&lt;/LI-CODE&gt;
&lt;P&gt;This measure combines all conditions and ensures that the results dynamically adjust based on the selected month, following the rules for posting, corrections, and missing months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4384547#M174034</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2025-01-28T14:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4387499#M174176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="831764" data-lia-user-login="Roland74" class="lia-mention lia-mention-user"&gt;Roland74&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your problem been resolved? If so, could you mark the corresponding reply as the solution so that others with similar issues can benefit from it?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 06:42:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4387499#M174176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-30T06:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4387902#M174184</link>
      <description>&lt;P&gt;Hi DataNinja777,&lt;/P&gt;&lt;P&gt;Thanx for your solution. I didn't have time till now to check....&lt;/P&gt;&lt;P&gt;I don't have a date in the DIM_ProjectPreclosure, so it doesn't work.&lt;/P&gt;&lt;P&gt;I'll try to figure it out, you've put me in the right direction (i hope)&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 09:58:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4387902#M174184</guid>
      <dc:creator>Roland74</dc:creator>
      <dc:date>2025-01-30T09:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4390043#M174276</link>
      <description>&lt;P&gt;Can't figure it out&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;, solution of DataNinja777 doesn't work, because i can't share my model and that solution refers to DIMProjectPreclosure[Date], a field i don't have.&lt;/P&gt;&lt;P&gt;I will keep on struggling.... Eventualy i will find a solution&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 14:19:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4390043#M174276</guid>
      <dc:creator>Roland74</dc:creator>
      <dc:date>2025-01-31T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4410873#M175166</link>
      <description>&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;I finaly got the measure right for the row-level, however the totals are way off. Any suggestions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Measure with the right row-values for the projects:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ProvisionLoss(Def) =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------- Last LineNumber in Dim-table ---------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------- (Posted = TRUE &amp;amp;&amp;amp; PostedMonth &amp;lt;= SelectedMonth ) ------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;MaxLineNumberSelected&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[LineNumber]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;PostingDate&lt;/SPAN&gt;&lt;SPAN&gt;[CYearMonthNo]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[CYearMonthNo]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[Posted]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;factProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[ProjectPreclosureResultID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[ProjectPreclosureResultID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Both&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------- Closed Project have no valua after the last ModefiedDate ------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------- CorrectionPosted = TRUE &amp;amp;&amp;amp; CorrectionPostedBy = N/A -----------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;LastDateModified&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DateModified&lt;/SPAN&gt;&lt;SPAN&gt;[CYearMonthNo]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[CorrectionPosted]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;ProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[CorrectionPostedBy]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"N/A"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;factProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[ModifiedDateID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;DateModified&lt;/SPAN&gt;&lt;SPAN&gt;[DateID]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Both&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-------- Alternative, if LastDateModified = Blank --------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;IfLastDateModifiedIsBlank&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[CYearMonthNo]&lt;/SPAN&gt;&lt;SPAN&gt;) +&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;MaxDateCorrection&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;LastDateModified&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;IfLastDateModifiedIsBlank&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LastDateModified&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--------- Final Measure-----------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;ProvisionLossSelected&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ROUND&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;factProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;factProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[CorrectedProvisionLoss_PPR]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ProjectPreclosureResult&lt;/SPAN&gt;&lt;SPAN&gt;[LineNumber]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MaxLineNumberSelected&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[CYearMonthNo]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;MaxDateCorrection&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ProvisionLossSelected&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;ProvisionLossSelected&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Feb 2025 10:25:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-with-multiple-conditions/m-p/4410873#M175166</guid>
      <dc:creator>Roland74</dc:creator>
      <dc:date>2025-02-14T10:25:54Z</dc:date>
    </item>
  </channel>
</rss>

