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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
tjwaufle
Regular Visitor

Attempting to build a visual that includes subtotals

I'm attempting to build a visualization of our company's P&L but am having difficulty figuring out how to visualize the subtotals. The data looks like this:

   5010 Shipping and Warehousing1,305.27 
   5015 Job Supplies785.64 
   5050 Direct Travel 
      5051 Airfare6,343.58 
      5052 Lodging3,534.87 
      5053 Meals1,153.50 
      5054 Ground Transportation2,711.12 
   Total 5050 Direct Travel$13,743.07 
   5300 Cost of Labor 
      5305 Salary19,915.40 
      5310 Benefits223.45 
      5315 401(k) Company Contribution748.14 
      5320 Payroll Taxes1,342.13 
   Total 5300 Cost of Labor$22,229.12 
Total Cost of Goods Sold$38,063.10 

 

Is there a way to build a visualization that shows the Total Cost of Goods Sold with the ability to drill down to the next level of Total Cost of Labor and Total Direct Travel and then to further drill down to each individual component of those totals?

 

I'm very new to PBI and am an accountant by profession not a data analyst so please be gentle. 🙂 Thanks!

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @tjwaufle ,

 

Here I suggest you to try hierarchy level in matrix. Your table should looks like as below. "Cost of Goods Sold" should be the first level and then second level, third level... and sales value.

RicoZhou_0-1664420125799.png

Add all level columns into Matrix Row Field and then turn off "Stepped layout"

RicoZhou_1-1664420358780.png

Result is as below.

RicoZhou_2-1664420374678.png

For reference: Create matrix visualizations in Power BI

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @tjwaufle ,

 

Here I suggest you to try hierarchy level in matrix. Your table should looks like as below. "Cost of Goods Sold" should be the first level and then second level, third level... and sales value.

RicoZhou_0-1664420125799.png

Add all level columns into Matrix Row Field and then turn off "Stepped layout"

RicoZhou_1-1664420358780.png

Result is as below.

RicoZhou_2-1664420374678.png

For reference: Create matrix visualizations in Power BI

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.