<?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: How to create measure with Date condition? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3664183#M142022</link>
    <description>&lt;P&gt;We want to help you but your description is too vaugue. Please write it again clearly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please DON'T copy &amp;amp; paste your DAX that does not work and expect us to fathom what you want to do. That is a bit crazy. &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please just give a simple non technical functional decscription of what you want, then let us suggest the solution. Thank you.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Remove any unneeded columns which may cause confussion.&lt;/P&gt;&lt;P&gt;Rename columns to user friendly names.&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Also provide the example desired output, with a clear step-by-step description of calculations and process flow.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Remember not to share private data ... we don't want you to get into trouble. &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;BR /&gt;Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.&lt;BR /&gt;Try keep it simple and ask one question per ticket.&lt;BR /&gt;You will get a quick response if you put time, care and effort into writing clear problem descriptions.&lt;BR /&gt;Remember you are gerrting free expert help, so please put lots of proper effort to asking questions and providing example.&lt;/P&gt;&lt;P&gt;Vaugue descriptions can waste your time and ourtime.&lt;/P&gt;&lt;P&gt;Look foward to helping you when the above information is forthcoming&lt;/P&gt;</description>
    <pubDate>Sat, 27 Jan 2024 15:01:09 GMT</pubDate>
    <dc:creator>speedramps</dc:creator>
    <dc:date>2024-01-27T15:01:09Z</dc:date>
    <item>
      <title>How to create measure with Date condition?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3662397#M141921</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I need to create a measure having Date condition but It is showing errors, any help please?&lt;/P&gt;&lt;P&gt;It should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure&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;DimDates&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2024&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Metrics&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue_DKK]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0.77&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Metrics&lt;/SPAN&gt;&lt;SPAN&gt;[Revenue_DKK]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0.240870000&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for your help&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jan 2024 09:12:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3662397#M141921</guid>
      <dc:creator>lucie_rabochova</dc:creator>
      <dc:date>2024-01-26T09:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure with Date condition?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3664183#M142022</link>
      <description>&lt;P&gt;We want to help you but your description is too vaugue. Please write it again clearly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please DON'T copy &amp;amp; paste your DAX that does not work and expect us to fathom what you want to do. That is a bit crazy. &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please just give a simple non technical functional decscription of what you want, then let us suggest the solution. Thank you.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Remove any unneeded columns which may cause confussion.&lt;/P&gt;&lt;P&gt;Rename columns to user friendly names.&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Also provide the example desired output, with a clear step-by-step description of calculations and process flow.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;Remember not to share private data ... we don't want you to get into trouble. &lt;span class="lia-unicode-emoji" title=":anguished_face:"&gt;😧&lt;/span&gt;&lt;BR /&gt;Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.&lt;BR /&gt;Try keep it simple and ask one question per ticket.&lt;BR /&gt;You will get a quick response if you put time, care and effort into writing clear problem descriptions.&lt;BR /&gt;Remember you are gerrting free expert help, so please put lots of proper effort to asking questions and providing example.&lt;/P&gt;&lt;P&gt;Vaugue descriptions can waste your time and ourtime.&lt;/P&gt;&lt;P&gt;Look foward to helping you when the above information is forthcoming&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2024 15:01:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3664183#M142022</guid>
      <dc:creator>speedramps</dc:creator>
      <dc:date>2024-01-27T15:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create measure with Date condition?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3665453#M142084</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="617908" data-lia-user-login="lucie_rabochova" class="lia-mention lia-mention-user"&gt;lucie_rabochova&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Current you cannot directly invoke the table columns in the measure formula. &lt;BR /&gt;I'd like to suggest you add aggregate functions to process on it to get value from current row context instead directly use table column in your conditions:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    MAX ( DimDates[Date] ) &amp;lt; DATE ( 2024, 1, 1 ),
    DIVIDE ( SUM ( Metrics[Revenue_DKK] ), 0.77 ),
    DIVIDE ( SUM ( Metrics[Revenue_DKK] ), 0.240870000 )
)&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 06:07:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-measure-with-Date-condition/m-p/3665453#M142084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T06:07:36Z</dc:date>
    </item>
  </channel>
</rss>

