Forum Discussion

kosmo's avatar
kosmo
Regular Visitor
8 years ago

Need Help with Aggregation.

Post is de-identified.

 

I'm new to PowerBI and need some help using aggregation in visualizations. I have three tables, AY (academic year), StudentList, and Volumes.  They are set up as below:

 

AY:

AYStartEnd
AY 2010-11Thursday, July 1, 2010Thursday, June 30, 2011
AY 2011-12Friday, July 1, 2011Saturday, June 30, 2012
AY 2012-13Sunday, July 1, 2012Sunday, June 30, 2013

 

 

ClassList

FirstNameLastNameFull NameClassYear
JohnSmithJohn Smith1
FredThomasFred Thomas1

 

Volumes

AYStudentTranscribed dateCompleted volumeSubspecialtyLastNameFirstName+MIFirstNameStudentName
AY 2014-15SMITH XX-Student, JOHN RMonday, January 12, 20151CT APSMITHJOHN RJOHNSMITH, JOHN

 

I have created a visualization like this that totals the volumes per student for a particular study type:

 

image.png

 

I am trying to create a table as below for average volume for each class year for particular study types, but the average aggregation is giving values as below.

image.png

What am I doing wrong? I probably need to use a measure, but I'm unsure of how to set it up.

 

As an aside, I am filtering the visualization per student. I'd like to be able to output a report in PDF that shows the data for each student separately. Is there any way to automatte/batch such a report, or do I just have to create a page per student with the same visualization to do that?

4 Replies

  • kosmo's avatar
    kosmo
    Regular Visitor

    I'm new to PowerBI and need some help using aggregation in visualizations. I have three tables, AY (academic year), StudentList, and Volumes.  They are set up as below:

     

    AY:

    AYStartEnd
    AY 2010-11Thursday, July 1, 2010Thursday, June 30, 2011
    AY 2011-12Friday, July 1, 2011Saturday, June 30, 2012
    AY 2012-13Sunday, July 1, 2012Sunday, June 30, 2013

     

     

    ClassList

    FirstNameLastNameFull NameClassYear
    JohnSmithJohn Smith1
    FredThomasFred Thomas1

     

    Volumes

    AYStudentTranscribed dateCompleted volumeSubspecialtyLastNameFirstName+MIFirstNameStudentName
    AY 2014-15SMITH XX-Student, JOHN RMonday, January 12, 20151CT APSMITHJOHN RJOHNSMITH, JOHN

     

    I have created a visualization like this that totals the volumes per student for a particular study type:

     

     

    I am trying to create a table as below for average volume for each class year for particular study types, but the average aggregation is giving values as below.

    What am I doing wrong? I probably need to use a measure, but I'm unsure of how to set it up.

     

    As an aside, I am filtering the visualization per student. I'd like to be able to output a report in PDF that shows the data for each student separately. Is there any way to automatte/batch such a report, or do I just have to create a page per student with the same visualization to do that?

  • Anonymous's avatar
    Anonymous
    Not applicable

    To answer your first question, yes you likely need a measure to calculate what you're looking for.  Using the Implicit measures (similar to what you would do with a standard pivot table) is not best practice, and doesn't even scratch the surface of what Power BI can do.

     

    Can you provide what results you WANT to see in the table?  We can help you write the measure, but we need to better understand what you're trying to calculate.

     

    To answer your 2nd question, Power BI is not the solution if you want to batch/automate reports for different students on a separate page.  You should look into using SSRS for that.

    • kosmo's avatar
      kosmo
      Regular Visitor

      Thanks ChrisHaas!

       

      I'm looking for the following table with an average Volume per ClassYear:

       

      image.png

      • kosmo's avatar
        kosmo
        Regular Visitor

        So I guess ot rephrase, each student is a member of a class. I want to aggregate the volumes for each class member and average that number year and per month.

         

        Each student would be on a difference subspecialty each month. In the end, I want to see something giving me the ability to see the average R1 student's volume in a year, in a month, and in a particular subspecialty.