cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
Microsoft

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
Microsoft

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors