1 Reply Latest reply: Apr 16, 2018 10:22 PM by Sunny Talwar RSS

    Count Dim in a Pivot Table

    Sam Habib

      Hi all,

       

      A couple of newbie questions.

       

      A data stream is averaging data with a set frequency (every day) for a number of cities. Example:

       

      Chi, 10, 20, 30, 9, 15,

      Dal: 5, 6, 9, 10,...

      Hous: 4, 7, 9, 2, ...

       

      I create a simple pivot table where the "avg()" of each date series (per city) is done. To get pivot table like this:

       

      CityAvg(avgSample)
      Chi5
      Dal11
      Hous20

       

       

      Ques 1: what is the expression for having the above pivot. I can do that but please keep this in mind for the next question, as it is cause of my challenge.

       

      Question 2:  I want to count the cities which have Avg(avgSample) less than different thresholds: 10, 20, 30, 40.

       

      Lastly,  I want to get a Pie Chart. Showing what is the percentage of cities with thresholds of Avg(avgSample) less than 10, 20, 30, 40. I can use the pie chart for drawing this but...the above two questions are show stoppers.

      Thanks for your help