Forum Discussion

jdunmall's avatar
jdunmall
Icon for Advocate I rankAdvocate I
10 years ago

Analyze in Excel: aggregation of numeric fields

I'm having trouble understanding how to use the new Analyze in Excel feature. The documentation says:

 

Excel PivotTables do not support drag-and-drop aggregation of numeric fields.
Your dataset in Power BI must have pre-defined measures.

If I have a numberic column called Total Sales in the dataset, I cannot summarize it in a pivot table. Odd. 

 

Does that mean I need to create a second column called Total Sales 2 that is a Measure of SUM([Total Sales]). There are now two fields in the dataset that contain the same data, but have different names. That is confusing. Do I then go through and hide the column?

 

Why can't PowerTables aggregate numeric fields? How should I approach numeric fields in the dataset that aggregate nicely inside PowerBI without measures but do not aggregate in Excel properly?

 

-Jeff

10 Replies

  • MattAllington's avatar
    MattAllington
    Icon for Community Champion rankCommunity Champion

    You are correct, but it is not as bad as you are imagining. When you drag a numeric column into values in Excel, you are creating an implicit measure "on the fly". This is not supported with "Analyze in Excel" nor other deployments of SSAS being consumed in a pivot table in Excel. You don't need to create another column, you need to write explicit measures for each column you want to Analyze. Just write the measure in Power BI and then hide the source column. The upsides are you learn to write some DAX, you get to specifically specify the name (compare "Sum of Extended Amount" with "Total Sales") plus you get to set the formatting in the measure, and at will flow through to the pivot. 

    • itchyeyeballs's avatar
      itchyeyeballs
      Icon for Impactful Individual rankImpactful Individual

      Just to add another couple of postives to Matt's response, by using a measure rather than a 'naked' column its much easier to modify multiple pivots or visualisations in one go i.e. switch from count to distinct count. Also using measures allows you to modify the behavior depending on context, I quite often need to show a sum for individual rows but then an average for the total row.

      • npnigro's avatar
        npnigro
        Icon for Advocate III rankAdvocate III

        The problem with this method is that it strips out a large part of the user interface -- implicit measures are baked into Excel and Power BI. Requiring these explicit measures to do anything with the data is a noticeable inconvenience and makes for very confusing and limited reports. If you hide the data columns in Power BI, then you no longer have access to the features related to implicit measures. If you keep the columns, you confuse Excel users. Is it possible for support of implicit measures to be added to "Analyze in Excel"?

    • plansis's avatar
      plansis
      Regular Visitor

      formatting and aggregation is already setup in the powerbi model

      it must be a bug i cannot aggregate numeric values straight in Excel, 

      microsoft, please support this as soon as possible

      right now, tabular from powerbi is unusable in Excel. 

  • Hi,

     

    I have a powerbi report in which I have YTD calculated measure and i am getting the correct result in power BI for the %YTD value out of it, but when I am analyzing that report in Excel - i am not getting the same values as in Power bi in that column. Not sure why is it different from power bi to analyze excel.

     

    Please help me with this.

     

    Thanks

  • Hi,

     

    I have a powerbi report in which I have YTD calculated measure and i am getting the correct result in power BI for the %YTD value out of it, but when I am analyzing that report in Excel - i am not getting the same values as in Power bi in that column. Not sure why is it different from power bi to analyze excel.

     

    Please help me with this.

     

    Thanks