<?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: Status rows = (ex) Approved, Approved, Rejected, Approved -------&amp;gt; Measure Returns &amp;quot;Rejected&amp;quot; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207849#M52016</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284147" data-lia-user-login="maibacherstr" class="lia-mention lia-mention-user"&gt;maibacherstr&lt;/a&gt;&amp;nbsp; did you have a chance to look into the solution I provided?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Nov 2021 14:07:38 GMT</pubDate>
    <dc:creator>smpa01</dc:creator>
    <dc:date>2021-11-25T14:07:38Z</dc:date>
    <item>
      <title>Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2206094#M51917</link>
      <description>&lt;P&gt;Hello BI Community, thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working with two columns, ID and Status. As you can see below, the ID column may have duplicate ID #s. For a given ID, it will have a status of either "Approved" or "Rejected" (or null), but the challenge to write in DAX is to be able to identify ANY instance of a "Rejected" status for a given ID. For example, if there are 10 rows where ID= 50, 8 are "Accepted," 1 is null, and 1 is "Rejected," I need to return "Rejected."&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I don't do this very often. Can anyone please help? Thanks again,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:12:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2206094#M51917</guid>
      <dc:creator>maibacherstr</dc:creator>
      <dc:date>2021-11-24T15:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2206134#M51918</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284147" data-lia-user-login="maibacherstr" class="lia-mention lia-mention-user"&gt;maibacherstr&lt;/a&gt;&amp;nbsp; you can write a measure like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    CALCULATE (
        CALCULATE ( COUNT ( 'Table'[Status] ), 'Table'[Status] = "Rejected" ),
        ALLEXCEPT ( 'Table', 'Table'[ID] )
    ) &amp;gt;= 1,
    "Rejected",
    "Accepted"
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;pbix is atatched&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 15:31:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2206134#M51918</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-24T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207849#M52016</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284147" data-lia-user-login="maibacherstr" class="lia-mention lia-mention-user"&gt;maibacherstr&lt;/a&gt;&amp;nbsp; did you have a chance to look into the solution I provided?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 14:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207849#M52016</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-25T14:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207925#M52023</link>
      <description>&lt;P&gt;Yes I did, thank you very much for your reply. The solution isn't completely integrated yet though. On first attempt I can get the measure working, but with an error that I think is based on a table relationship as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've been working with my "approve/reject" table which is a many-to-one relationship with my "packages" table. (The rule I'm working with is that each package goes through an approval process and if any of the approvers rejects the package, then the "packages" table will reflect it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One first attempt, dropping the new measure into my Packages table visual results in every row showing "rejected." On the other hand, dropping the new measure into a "reject/approve" table visual works like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dropping related fields into a table visual has always been thorny to me. Seeing your expertise so far I'd love to hear any more of your thoughts. Thanks again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 14:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207925#M52023</guid>
      <dc:creator>maibacherstr</dc:creator>
      <dc:date>2021-11-25T14:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207954#M52027</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284147" data-lia-user-login="maibacherstr" class="lia-mention lia-mention-user"&gt;maibacherstr&lt;/a&gt;&amp;nbsp; you did not fully mention in the original psit about the data model. I thought everything was coming from the same table.&lt;/P&gt;
&lt;P&gt;Can you please post the sample pbix and show the desired output?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 15:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2207954#M52027</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-25T15:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2209760#M52111</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;, thanks again. I modified the pbix that you posted, built the data model, and added a Details tab showing the same as the graphic below. To restate the goal (as shown in the gray box in the graphic):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;GOAL is to drop the Measure into the PackageTable and produce the result shown in the "Should Show As" column&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;(As shown in this example, the PackageTable.Status column is a manual entry)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;RECAP: 1st attempt resulted in all "Measure" rows showing as "Rejected"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Side note but I'm trying to attach a pbix to the community thread for the first time and am surprised this interface isn't making it easy at all, I'm not sure the best method but I think &lt;A href="https://tinyurl.com/46zpfe62" target="_self"&gt;this should work&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 16:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2209760#M52111</guid>
      <dc:creator>maibacherstr</dc:creator>
      <dc:date>2021-11-26T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2209847#M52117</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="284147" data-lia-user-login="maibacherstr" class="lia-mention lia-mention-user"&gt;maibacherstr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
IF (
    CALCULATE (
        CALCULATE ( COUNT ( 'Approval Table'[Status] ), 'Approval Table'[Status] = "Rejected" ),
        ALL('Package Table'),VALUES('Package Table'[PackageID])
    ) &amp;gt;= 1,
    "Rejected",
    "Approved"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 26 Nov 2021 17:32:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2209847#M52117</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-26T17:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2209856#M52118</link>
      <description>&lt;P&gt;It worked perfectly! So the difference at the end came down to the "all" vs "allexcept" functions by the look of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are amazing and I hope you have a wonderful day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 17:45:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/2209856#M52118</guid>
      <dc:creator>maibacherstr</dc:creator>
      <dc:date>2021-11-26T17:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Status rows = (ex) Approved, Approved, Rejected, Approved -------&gt; Measure Returns "Rejected"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/4137406#M164345</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hello, BI experts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in BI &amp;amp; DAX and I am learning this new application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me in this matter. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to write the formula if I want to show this table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 10:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Status-rows-ex-Approved-Approved-Rejected-Approved-gt-Measure/m-p/4137406#M164345</guid>
      <dc:creator>kenqui</dc:creator>
      <dc:date>2024-09-06T10:53:20Z</dc:date>
    </item>
  </channel>
</rss>

