Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dospencer
Frequent Visitor

Create Calculated Rows

Hi,

 

I need to create a Net Tuition visual that must include calculated rows at 3 levels. The calculate rows are interspersed between rows from the main data table. I have included samples showing the main data table and what the output should look like. 

 

  1. What visual would be best, Table or Matrix?
  2. How would I achieve generating the calculated rows and inserting them in the correct places?

    I am new to PowerBI so I would appreciate as much detail as possible.

     

    Data Table:

     

    Student LevelTermTransactionStudents BudgetedStudents BilledTuition BudgetedTuition Billed
    UndergraduateFall 2020Undergraduate Tuition & Fees909114$24,000$26,000
    UndergraduateFall 2020Room and Board  $23,000$15,000
    UndergraduateFall 2020Study Abroad432$7,500$100
    UndergraduateFall 2020Financial Aid  $12,000$11,000
    UndergraduateSpring 2021Undergraduate Tuition & Fees83251$17,000$16,000
    UndergraduateSpring 2021Study Abroad550$8,000$0
    UndergraduateSpring 2021Financial Aid  $9,000$5,000
    GraduateFall 2020Executive MBA909114$24,000$26,000
    GraduateFall 2020Professional MBA432$7,500$100
    GraduateFall 2020Early Advantage MBA432$7,500$100
    GraduateFall 2020Financial Aid  $12,000$11,000

 

Visual:

The rows with the text in blue are the calculated rows:

  1. The Tuition Revenue is the sum of all the revenue items (every item except the Financial Aid).
  2. Net Tuition is Tuition Revenue minus Financial Aid.
  3. Percent Discount is calcualted as Financial Aid divided by Tuition Revenue

     

    UndergraduateStudents BudgetedStudents BilledTuition BudgetedTuition Billed
    Fall 2020    
    Undergraduate Tuition & Fees909114$24,000$26,000
    Room and Board  $23,000$15,000
    Study Abroad432$7,500$100
    Tuition Revenue952116$54,500$41,100
    Financial Aid  $12,000$11,000
    Net Tuition  $42,500$30,100
    Percent Discount  22%27%
    Spring 2021    
    Undergraduate Tuition & Fees83251$17,000$16,000
    Study Abroad550$8,000$0
    Tuition Revenue88751$25,000$16,000
    Financial Aid  $9,000$5,000
    Net Tuition  $16,000$11,000
    Percent Discount  36%31%
    Undergraduate Tuition Revenue  $79,500$57,100
    Financial Aid  $21,000$16,000
    Net Tuition  $58,500$41,100
    Percent Discount  26%28%
    GraduateStudents BudgetedStudents BilledTuition BudgetedTuition Billed
    Fall 2020    
    Executive MBA909114$24,000$26,000
    Professional MBA432$7,500$100
    Early Advantage MBA432$7,500$100
    Tuition Revenue952116$39,000$26,200
    Financial Aid  $12,000$11,000
    Net Tuition  $27,000$15,200
    Percent Discount  31%42%
    Graduate Tuition Revenue  $64,000$42,200
    Financial Aid  $21,000$16,000
    Net Tuition  $43,000$26,200
    Percent Discount  33%38%
    College Tuition Revenue  $143,500$99,300
    Financial Aid  $42,000$32,000
    Net Tuition  $101,500$67,300
    Percent Discount  29%32%
3 REPLIES 3
dospencer
Frequent Visitor

@DataInsights Thank you. I will go through to see how I can make it work with my data.

@DataInsights I tried the Profitbase Financial Reporting Matrix but I didn't see it working for my use case. There was a grid option but it required that I add the row at specific places and it therefrore assumed that the row will always appear at the same row number. In my case, the row where Tuition Revenue, Net Tuition and Percent Discount will vary based on the number detail rows above it.

 

I tried adding Tuition Revenue, Net Tuition and Percent Discount in the source data set and then using a measure calculation to compute the Tuition Revenue where the Tuition Revenue row appears but I can't get that working either.

DataInsights
Super User
Super User

@dospencer,

 

Try the Profitbase Financial Reporting Matrix. It allows you to create custom subtotals, among other things.

 

https://appsource.microsoft.com/en-US/product/power-bi-visuals/WA200000642?tab=Overview 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.