title: How to use GROUPBY function in PowerBI?
body: <p>I tried using group by DAX function in PowerBI as Measure, New Column, New Table but I get an error in validating the function,</p>
  
  <pre><code>New Table = GROUPBY(
              'tab1',
              'tab1'[color],
              "Group By color",
              sum('tab1'[count_lables])
            )
  
  Error : Function 'GROUPBY' scalar expressions have to be Aggregation functions over CurrentGroup(). The expression of each Aggregation has to be either a constant or directly reference the columns in CurrentGroup().
  </code></pre>