<?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 for Active Contracts based on a value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1032886#M13640</link>
    <description>&lt;P&gt;Unfortunetaly, line chart can have only one measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is a hack to do that:&lt;/P&gt;&lt;P&gt;1 . In Power Query window: copy you query&lt;/P&gt;&lt;P&gt;2 . Replace each contract type with the word "All"&lt;/P&gt;&lt;P&gt;3 . Append quiries together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing those steps you will have doublicate data in your table with contract type called All&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that's helps you.&lt;/P&gt;&lt;P&gt;Best wishes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 16:19:50 GMT</pubDate>
    <dc:creator>Motasem_Yakhola</dc:creator>
    <dc:date>2020-04-17T16:19:50Z</dc:date>
    <item>
      <title>DAX Measure for Active Contracts based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1030687#M13513</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to Power BI so please ask if what I'm trying to do is not understandable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with Contracts and I've made a measure to show me the active contracts from day to day. This is the measure I've used, and it's working and gives med the active contracts from day to day.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;CALCULATE(COUNTROWS(Contracts); FILTER(Contracts; Contracts[Start Date] &amp;lt;= LASTDATE('Date'[Date]) &amp;amp;&amp;amp; [Column] &amp;gt;= FIRSTDATE('Date'[Date])))&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've put this into a line diagram to show progress over time.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;These contracts are in different areas. The areas are listed in a Column inside the same table as Contracts. I've grouped them into 3 groups, and what I want to do, is to have one line in the diagram for each of the areas, in addition to the line that shows total active contracts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How can I create a measure based on those specific values? Is there a better way to do it? Do I add something to the measure I already have, based on that specific group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for the help!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 17:04:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1030687#M13513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-16T17:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure for Active Contracts based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1030771#M13516</link>
      <description>&lt;P&gt;Tough to follow.&amp;nbsp;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 17:50:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1030771#M13516</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-16T17:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure for Active Contracts based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1031035#M13529</link>
      <description>&lt;P&gt;Hello Siljewiehauge,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change your measure to be like below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Day to day = calculate(COUNTROWS(Contracts),filter(ALL(Contracts[Start Date]),Contracts[Start Date]&amp;lt;=MAX(Contracts[Start Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So by adding the measure to values and dates to axis you will get below visual:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;If you want to get line for each contract type; just add contract type to legend and you will get below chart&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope thats answering your question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please don't hesitate to ask if anything else.&lt;/DIV&gt;&lt;DIV&gt;Best wishes.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Apr 2020 21:58:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1031035#M13529</guid>
      <dc:creator>Motasem_Yakhola</dc:creator>
      <dc:date>2020-04-16T21:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure for Active Contracts based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1031610#M13546</link>
      <description>&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hello, and thank you! I've already done that, with the measure that I have. And I have the Active Contracts in a line diagram, it's working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to add Grid Owner Name to legend, it's not working. Somehow the line flattens out.&lt;/P&gt;&lt;P&gt;And anyway I would need one line for total, than one line for each of those.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I thought if I could create one measure for total active contracts, as I already have;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then one measure that used the same calculation, but only based on rows with the correct Grid owner name? Is that possible?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 06:45:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1031610#M13546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-17T06:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure for Active Contracts based on a value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1032886#M13640</link>
      <description>&lt;P&gt;Unfortunetaly, line chart can have only one measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, there is a hack to do that:&lt;/P&gt;&lt;P&gt;1 . In Power Query window: copy you query&lt;/P&gt;&lt;P&gt;2 . Replace each contract type with the word "All"&lt;/P&gt;&lt;P&gt;3 . Append quiries together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By doing those steps you will have doublicate data in your table with contract type called All&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that's helps you.&lt;/P&gt;&lt;P&gt;Best wishes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 16:19:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Active-Contracts-based-on-a-value/m-p/1032886#M13640</guid>
      <dc:creator>Motasem_Yakhola</dc:creator>
      <dc:date>2020-04-17T16:19:50Z</dc:date>
    </item>
  </channel>
</rss>

