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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
hidenseek9
Post Patron
Post Patron

Aggregate all the data to create a table

Hi, Power BI Community!

 

I am currently working on creating an income statement.

I have created a dummy data below to show you

what data I am working with.

 

Dummy Data

 

My Objective:

To create an income statement with a left hand side column that has

Item # and Item from "Master Filter" tab in month breakdown.

It would look like below picture.

 

2017-04-24 11_14_27-Book1 - Excel.png

 

Problems:

1. Struggling to get all the data in one table to create an income statement such as above.

2. Need to calculate Sales, Margin on Operations, Net Contributions and Profit within Power BI

  • Sales = Volume (Demand tab) * Sales/KG (CANNKG tab)
  • Margin on Operations = Sales - sum(Material, Industrial, Logistics)
  • Net Contributions = Margin on Operations - A&P
  • Profit = Net Contributions - sum(Sales Force, OH, Others)

I think it is not diffucult at all to do above but I just cannot figure out how to do this....

 

Any suggestion would help me greatly.

 

Appreciate the support!

 

1 ACCEPTED SOLUTION
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @hidenseek9

 

The easiest approach to achieve the visual below is to organise all your data into a single table with a structure similar to this

 

Date       , Item Name , Value
----------------------------------
1-jan-16 , Volume , 100
1-Feb-16 , Volume , 120
1-Mar-16 , Volume , 100
....
1-Dec-16 , Volume , 150
1-Jan-16 , Sales , 200
etc
etc


Then you can create measures to suit using the CALCUATE and FILTER functions eg

 

Sales = CALCULATE(SUM([Value]),FILTER('table',Item='Volume') * ......

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Microsoft Employee
Microsoft Employee

HI @hidenseek9

 

The easiest approach to achieve the visual below is to organise all your data into a single table with a structure similar to this

 

Date       , Item Name , Value
----------------------------------
1-jan-16 , Volume , 100
1-Feb-16 , Volume , 120
1-Mar-16 , Volume , 100
....
1-Dec-16 , Volume , 150
1-Jan-16 , Sales , 200
etc
etc


Then you can create measures to suit using the CALCUATE and FILTER functions eg

 

Sales = CALCULATE(SUM([Value]),FILTER('table',Item='Volume') * ......

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

@Phil_Seamark

 

Thank you for your reply!

I think I can make it work.

 

Many thanks,

 

H

Let me know how you get on. 🙂

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors