<?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: Add an extra condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1748552#M36373</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292914" data-lia-user-login="Evanpooley_2" class="lia-mention lia-mention-user"&gt;Evanpooley_2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you start creating models according to Best Practices, you won't have such issues. Please read this:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;Understand star schema and the importance for Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND FOLLOW IT ALWAYS TO THE LETTER &lt;/STRONG&gt;if you want to keep your sanity and be able to understand what your DAX is doing. Also, this will make your work understandable to others.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 15:32:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-26T15:32:52Z</dc:date>
    <item>
      <title>Add an extra condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1746873#M36339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am creating a dashboard that shows the total average score for each student&lt;/P&gt;&lt;P&gt;This is done by calculating the total "Score" and dividing it by the amount of "ClassCodes" per "Student or StudentID"&lt;/P&gt;&lt;P&gt;Currently I have a measure that does the total score divided by Classcode but cant figure out how to add "By Student ID"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the correct result when i apply a visual level filter to my current measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Score divided by Count of classcode = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DIVIDE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SUM('SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[Score]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DISTINCTCOUNT('SB_STAGING_ASSESSMENT_RESULTS_UNIQUE'[classcode])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible i would like to add "Student ID" to this as anything i try doesnt filter to the student&lt;/P&gt;&lt;P&gt;Any help is appreciated&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 02:17:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1746873#M36339</guid>
      <dc:creator>Evanpooley_2</dc:creator>
      <dc:date>2021-03-26T02:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add an extra condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1747361#M36343</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;Can you please show sample data for your datasets and its relationship.&lt;BR /&gt;Also it would be great if you could show the current status value and expected value with some dummy numbers from sample dataset.&lt;BR /&gt;&lt;BR /&gt;That might help us in better understanding the use case&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 08:14:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1747361#M36343</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2021-03-26T08:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add an extra condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1748552#M36373</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="292914" data-lia-user-login="Evanpooley_2" class="lia-mention lia-mention-user"&gt;Evanpooley_2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you start creating models according to Best Practices, you won't have such issues. Please read this:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/guidance/star-schema" target="_blank"&gt;Understand star schema and the importance for Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND FOLLOW IT ALWAYS TO THE LETTER &lt;/STRONG&gt;if you want to keep your sanity and be able to understand what your DAX is doing. Also, this will make your work understandable to others.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Add-an-extra-condition/m-p/1748552#M36373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-26T15:32:52Z</dc:date>
    </item>
  </channel>
</rss>

