<?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: Creating measure based on 2 statements in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1963532#M43012</link>
    <description>&lt;P&gt;Thanks for your solution, it is very much appreciated. I shall take a look at the video to improve things.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jul 2021 13:07:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-07-17T13:07:17Z</dc:date>
    <item>
      <title>Creating measure based on 2 statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948298#M42414</link>
      <description>&lt;P&gt;Hi, I'm having issues creating a measure that can filter vaules in 2 separate columns. I'm looking to calculate kidnapping rate for each type of alert. My original calculation doesn't seem to take into account the type of alert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached some screenshots of the fields i'm looking to filter. (Type of Alert) and (Incidents with Crew Kidnapped)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would be eternally grateful for any help.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 13:44:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948298#M42414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-09T13:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure based on 2 statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948699#M42431</link>
      <description>&lt;P&gt;First of all, from what you've shown you simply can't caculate this. You have to be able to link the two tables somehow. Currently, as it stands, this model is useless for the type of caclulation you want do perform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these two tables just one table?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:59:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948699#M42431</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-07-09T16:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure based on 2 statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948708#M42432</link>
      <description>&lt;P&gt;Sorry i forgot to metion that this is all part of one table.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:01:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948708#M42432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-09T17:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure based on 2 statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948734#M42435</link>
      <description>&lt;LI-CODE lang="csharp"&gt;[# Alerts] = COUNTROWS( T ) // T being your table

[Kidnapping Rate] =
DIVIDE(
    CALCULATE(
        [# Alerts],
        KEEPFILTERS(
            // Names of columns should be
            // as short as possible but
            // still meaningful.
            T[Incidents with Crew Kidnapped] = "YES"
        )
    ),
    [# Alerts]
)&lt;/LI-CODE&gt;&lt;P&gt;I warn you against having one-table models and not following the star schema. Watch this:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Why-one-table-models-will-produce-WRONG-NUMBERS/td-p/1904161" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Why-one-table-models-will-produce-WRONG-NUMBERS/td-p/1904161&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 17:09:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1948734#M42435</guid>
      <dc:creator>daxer-almighty</dc:creator>
      <dc:date>2021-07-09T17:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating measure based on 2 statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1963532#M43012</link>
      <description>&lt;P&gt;Thanks for your solution, it is very much appreciated. I shall take a look at the video to improve things.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 13:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-measure-based-on-2-statements/m-p/1963532#M43012</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-07-17T13:07:17Z</dc:date>
    </item>
  </channel>
</rss>

