<?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 help in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/dax-measure-help/m-p/1565405#M26848</link>
    <description>&lt;P&gt;Sounds like the granularity level is different between your cube dimensions and your view groups.&amp;nbsp; You did not specify which of the results you consider to be "correcter". Please provide sample data in usable format and show expected outcome.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 14:46:39 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-12-22T14:46:39Z</dc:date>
    <item>
      <title>dax measure help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dax-measure-help/m-p/1550459#M26769</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;in my database i have some calculations are getting done on a view which is basically created on the grouping of a table..&lt;/P&gt;&lt;P&gt;&amp;nbsp;view def-&amp;nbsp; create view xyz as select a, b , c, d, e FROM table_data where date between '2020-10-31' and '2020-11-05'&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group by a, b , c, d, e&lt;/P&gt;&lt;P&gt;Calculation -&amp;nbsp;SUM(IF(c="delivered" AND date_diff(d ,e ,day)&amp;lt;4 AND date_diff(CURRENT_DATE(),e&amp;gt;3,1,0))&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result- 1500&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; but in my cube i have the same table (table_data) ..when i am trying to use same calculation here i am getting a different result...&lt;/P&gt;&lt;P&gt;Calculation -&amp;nbsp;IF(table_data[c]="delivered" &amp;amp;&amp;amp; DATEDIFF(table_date[e].[Date],table_data[d].[Date],DAY)&amp;lt;4 &amp;amp;&amp;amp; DATEDIFF(table_data[e].[Date],TODAY(),DAY)&amp;gt;3 ,1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result- 6300&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please need help to write this dax query.....only difference is database calculation is done on top of a view(where data is grouped) where cube is done a table&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 06:19:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dax-measure-help/m-p/1550459#M26769</guid>
      <dc:creator>nsatyabrat7</dc:creator>
      <dc:date>2020-12-15T06:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: dax measure help</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/dax-measure-help/m-p/1565405#M26848</link>
      <description>&lt;P&gt;Sounds like the granularity level is different between your cube dimensions and your view groups.&amp;nbsp; You did not specify which of the results you consider to be "correcter". Please provide sample data in usable format and show expected outcome.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 14:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/dax-measure-help/m-p/1565405#M26848</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-12-22T14:46:39Z</dc:date>
    </item>
  </channel>
</rss>

