<?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: data is getting Aggregated / Dax help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990254#M154745</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp; Thank you very much for your support, i&lt;STRONG&gt; wanted to get the result in dax,&lt;/STRONG&gt; instead of going with the &lt;STRONG&gt;calculated column.&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i tried below dax and getting below error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=&lt;BR /&gt;Var Res_ = AVERAGE(Append1[Req - CV share] )&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;if( ISBLANK(Append1[CV date]),"",Res_)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;error:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This formula is invalid or incomplete: 'Calculation error in measure 'Append1'[Req to Cv shared Avg Days ]: A single value for column 'CV date' in table 'Append1' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 05:41:58 GMT</pubDate>
    <dc:creator>Madhu155154</dc:creator>
    <dc:date>2024-06-13T05:41:58Z</dc:date>
    <item>
      <title>data is getting Aggregated / Dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3989148#M154620</link>
      <description>&lt;P&gt;Hi Everyone, I am trying to create a Pivot table using Dax in Excel&lt;BR /&gt;&lt;BR /&gt;I have 4 columns in Table&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1) Request ID&amp;nbsp; [ text ]&lt;BR /&gt;2) Current status&amp;nbsp; [ text ]&lt;BR /&gt;3) Cv Date&amp;nbsp; [ date ]&lt;BR /&gt;4)&amp;nbsp; Days_CV [ Today Date - cv date ] [ num ]&lt;BR /&gt;&lt;BR /&gt;Note:&amp;nbsp; I have blank values in the CV Date.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;issue:&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I am trying to get the Avg days on days_CV, when I use the below Dax formulas.. in Pivot, with Dax 1:&amp;nbsp; code I am not able to see the JOB IDs, where the CV date is&amp;nbsp; blank,&amp;nbsp; &lt;STRONG&gt;but I want to&amp;nbsp; see all the JOB ids&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&amp;nbsp;if CV date is blank,&amp;nbsp; and I want&amp;nbsp; the formula to return blank&lt;BR /&gt;In Dax code 2, I am getting an error&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;dax1:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;=if( isblank([cv_date]), "",AVERAGE(Append1[Req - CV share] ))&lt;BR /&gt;&lt;BR /&gt;dax 2 :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;=CALCULATE(&lt;BR /&gt;AVERAGE(Append1[Req - CV share]),&lt;BR /&gt;KEEPFILTERS(&lt;BR /&gt;FILTER(&lt;BR /&gt;Append1,&lt;BR /&gt;Append1[Requestion ID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bwlow pic result with Dax 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below pic error, when i used dax 2&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 16:04:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3989148#M154620</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-06-12T16:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: data is getting Aggregated / Dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990078#M154736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602415" data-lia-user-login="Madhu155154" class="lia-mention lia-mention-user"&gt;Madhu155154&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Can you accept writing dax in Power BI Desktop to get the corresponding results?Power BI can use more practical DAX functions.Connect your pivot table using Power BI Desktop.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use the following DAX expression to create a column&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Req to Cv shared Avg Days = 
VAR _datediff = ADDCOLUMNS('Table',"datediff",DATEDIFF([Least CV Date],TODAY(),DAY))
 //Today - [Least CV Date]
VAR _result = AVERAGEX(_datediff,[datediff])
RETURN IF(ISBLANK([Least CV Date]),BLANK(),_result)&lt;/LI-CODE&gt;
&lt;P&gt;Today is 6/13/2024.(65/3 = 21.666666)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Finally, copy the table data into Excel.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 03:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990078#M154736</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T03:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: data is getting Aggregated / Dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990254#M154745</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp; Thank you very much for your support, i&lt;STRONG&gt; wanted to get the result in dax,&lt;/STRONG&gt; instead of going with the &lt;STRONG&gt;calculated column.&lt;/STRONG&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;i tried below dax and getting below error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;=&lt;BR /&gt;Var Res_ = AVERAGE(Append1[Req - CV share] )&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;if( ISBLANK(Append1[CV date]),"",Res_)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;error:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This formula is invalid or incomplete: 'Calculation error in measure 'Append1'[Req to Cv shared Avg Days ]: A single value for column 'CV date' in table 'Append1' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 05:41:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990254#M154745</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-06-13T05:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: data is getting Aggregated / Dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990330#M154752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602415" data-lia-user-login="Madhu155154" class="lia-mention lia-mention-user"&gt;Madhu155154&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Something like this?This is because you can't reference columns directly in measures, you have to use them in conjunction with aggregate functions. This is because it is calculated in the filter context. The computation environment for a column is the row context, it can reference the column directly.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Try this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=
Var Res_ = AVERAGE(Append1[Req - CV share] )

return

if( ISBLANK(MAX('Append1'[CV date])),"",Res_)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 06:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3990330#M154752</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T06:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: data is getting Aggregated / Dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3991296#M154818</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, i used the same approach, I used MIN instead of max, and it worked. But anyway&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you, for your support&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 14:01:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/data-is-getting-Aggregated-Dax-help/m-p/3991296#M154818</guid>
      <dc:creator>Madhu155154</dc:creator>
      <dc:date>2024-06-13T14:01:17Z</dc:date>
    </item>
  </channel>
</rss>

