Forum Discussion

ericbuildOn's avatar
ericbuildOn
New Member
8 years ago
Solved

variance between values in two different columns

I have data being summarized in service hour field, and then have that segmented by two separate text categories (Month) and (School Year). I would like to know the variance in the summarized Service Hour field between the same month but previous school year. Example shown below.

 

3 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Sample/example data that can be copied and pasted would be tremendously helpful. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

     

    That being said, you should be able to create a couple VAR's that grab your MAX month and MAX year and then another VAR that does a SUMMARIZE of ALL and then some additional VAR's that use your month and year variables to extract the particular information that you want through the appropriate FILTERing. Then you just need to RETURN the calculation that you want.

    • ericbuildOn's avatar
      ericbuildOn
      New Member

      Thanks for the tip and for that detailed response Greg. I'll go ahead and try that out. In the meantime, here is a sample of the data:

       

      RegionHigh SchoolService HoursService Goal% Service TargetService DateSchool Year
      BostonHigh School Name22.759752.33%1-Sep'16/'17
      BostonHigh School Name72.59757.44%1-Sep'17/'18
      BostonHigh School Name116.597511.95%2-Oct'16/'17
      BostonHigh School Name223.597522.92%2-Oct'17/'18