<?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: error: column that contains many values without specifying an aggregation such as min, max, count in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737713#M145718</link>
    <description>&lt;P&gt;I'm getting the same error: A single value for column 'Delivery No in table 'Table A' 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;</description>
    <pubDate>Sat, 02 Mar 2024 15:56:55 GMT</pubDate>
    <dc:creator>vally57</dc:creator>
    <dc:date>2024-03-02T15:56:55Z</dc:date>
    <item>
      <title>error: column that contains many values without specifying an aggregation such as min, max, count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737283#M145686</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;HI Team,&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;I have created a meaure&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;IF (&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;ISBLANK(('table A'[Customer])) ||&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;ISBLANK(('table A'[Delivery No])) ||&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;ISBLANK(('table A'[Check-In Date Adjusted])) ||&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;ISBLANK(('table B'[Ship Date])) ,blank(),&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" size="1 2 3 4 5 6 7"&gt;if( ('table A'[Check-In Date Adjusted]) - ( 'table B'[Ship Date])&amp;lt;= 0,1,0))&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;there is a many-to-one relationship among table A and table B.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;SPAN&gt;&lt;BR /&gt;I'm getting an error like below: A single value for column 'Check-In Date Adjusted' in table 'table A' 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;BR /&gt;&lt;BR /&gt;can anyone help me on changing this dax measure, I do not want to use any aggregate function here in last line as it does not get the expected result&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 01:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737283#M145686</guid>
      <dc:creator>vally57</dc:creator>
      <dc:date>2024-03-02T01:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: error: column that contains many values without specifying an aggregation such as min, max, count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737567#M145713</link>
      <description>&lt;P&gt;The error you're encountering typically arises because Power BI requires aggregation for measures to ensure that it can produce a single value in the context of the visualizations you're creating. However, in your case, it seems like you're trying to perform row-level calculations based on conditions without necessarily aggregating data.&lt;/P&gt;&lt;P&gt;Your measure is trying to compare values between rows in 'table A' and 'table B'. The issue likely stems from the fact that the measure doesn't know which row to consider when it's comparing 'table A'[Check-In Date Adjusted] with 'table B'[Ship Date].&lt;/P&gt;&lt;P&gt;To address this issue without using aggregate functions, you might consider iterating over rows in 'table B' based on the context of 'table A'. One way to achieve this is by using iterators like FILTER or RELATEDTABLE. Here's how you might rewrite your measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YourMeasure =&lt;BR /&gt;IF (&lt;BR /&gt;ISBLANK ( 'table A'[Customer] )&lt;BR /&gt;|| ISBLANK ( 'table A'[Delivery No] )&lt;BR /&gt;|| ISBLANK ( 'table A'[Check-In Date Adjusted] )&lt;BR /&gt;|| ISBLANK ( 'table B'[Ship Date] ),&lt;BR /&gt;BLANK (),&lt;BR /&gt;VAR ShipDate =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;MAX ( 'table B'[Ship Date] ),&lt;BR /&gt;FILTER (&lt;BR /&gt;'table B',&lt;BR /&gt;'table A'[Delivery No] = 'table B'[Delivery No]&lt;BR /&gt;&amp;amp;&amp;amp; 'table A'[Customer] = 'table B'[Customer]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;'table A'[Check-In Date Adjusted] - ShipDate &amp;lt;= 0,&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this measure, I used CALCULATE along with FILTER to retrieve the 'Ship Date' from 'table B' based on the matching conditions from 'table A'. This ensures that you're getting a single value to compare with 'Check-In Date Adjusted' in 'table A'. The MAX function is used to ensure that only one value is returned in case there are multiple matching rows.&lt;/P&gt;&lt;P&gt;Please adjust the column names and conditions according to your data model as needed. This approach should help you perform row-level calculations without resorting to aggregation functions directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 11:20:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737567#M145713</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-03-02T11:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: error: column that contains many values without specifying an aggregation such as min, max, count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737713#M145718</link>
      <description>&lt;P&gt;I'm getting the same error: A single value for column 'Delivery No in table 'Table A' 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;</description>
      <pubDate>Sat, 02 Mar 2024 15:56:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3737713#M145718</guid>
      <dc:creator>vally57</dc:creator>
      <dc:date>2024-03-02T15:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: error: column that contains many values without specifying an aggregation such as min, max, count</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3741733#M145919</link>
      <description>&lt;P&gt;If you're encountering the same error even after using an iterator like SUMX, it suggests that the issue might be related to the context in which the measure is being evaluated or the relationships between tables.&lt;/P&gt;&lt;P&gt;Here's another approach you might try to address the issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Measure =&lt;BR /&gt;IF (&lt;BR /&gt;ISBLANK ( 'table A'[Customer] )&lt;BR /&gt;|| ISBLANK ( 'table A'[Delivery No] )&lt;BR /&gt;|| ISBLANK ( 'table A'[Check-In Date Adjusted] )&lt;BR /&gt;|| ISBLANK ( 'table B'[Ship Date] ),&lt;BR /&gt;BLANK (),&lt;BR /&gt;CALCULATE (&lt;BR /&gt;COUNTROWS ( 'table A' ),&lt;BR /&gt;FILTER (&lt;BR /&gt;'table A',&lt;BR /&gt;'table A'[Check-In Date Adjusted] - RELATED ( 'table B'[Ship Date] ) &amp;lt;= 0&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;In this approach:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We use the CALCULATE function to modify the filter context for the COUNTROWS function.&lt;/LI&gt;&lt;LI&gt;Within the FILTER function, we specify the condition based on the relationship between 'table A' and 'table B'.&lt;/LI&gt;&lt;LI&gt;We count the rows of 'table A' where the condition is met.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This should help ensure that the measure returns a single value for each context, and it should help resolve the error you're encountering.&lt;/P&gt;&lt;P&gt;If you're still encountering issues, you might need to review the relationships between your tables and the context in which the measure is being evaluated to ensure they align with your expectations.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Mar 2024 05:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/error-column-that-contains-many-values-without-specifying-an/m-p/3741733#M145919</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-03-05T05:21:54Z</dc:date>
    </item>
  </channel>
</rss>

