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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cyborgandy
Helper II
Helper II

Need Help with Creating Table from 4 Different Datasets

I have 4 different excel dataset connected to power bi ,below are the example of different dataset.

Invoice DatePaid Fare Inc TaxCost Centre1Product Area 
Monday, January 31, 202211.7ABCDRail 
Monday, January 31, 202211.7ABCDRail 
Monday,July 31, 202211.7ABCDRail 
Monday,August 31, 202211.7ABCDRail 
     
     
     
Actual Cost Cost CentreProduct Area  
135ABADHotel  
135ABADHotel  
85.5ABADHotel  
97ABADHotel  
97ABADHotel  
     
     
MonthGBPGross CostCost Centre 1Product Area 
February150EEEEConference 
January1000EEEEConference 
February250EEEEEConference 
February250EEEEConference 
January720EEEEConference 
     
Travel MonthTicket NumberPaid Fare inc Air TaxCost Centre1Product Area
May12345119.96YYYYAir
May56789151.96YYTYAir
May22345279.96YYABAir
March3455670.48YYYYAir
May22334161.98YYCAAir

 

I need to build below table in power bi,could someone help if it is possible as the value is in different datasets.

Product AreaPrevious Month SpendCurrent Month Spend
AirXXXXXXXX
ConfrenceXXXXXXXX
RailXXXXXXXX
HotelXXXXXXXX
4 REPLIES 4
NikhilChenna
Continued Contributor
Continued Contributor

Hi @cyborgandy  , i think its simple.
1. Create a new table with one column having all unique values of "Product Area". 
2. Create one to many relationship from you new table to all the 4 tables. 
3. Come to your report page and drag, product area column from your new table and drag all reqiured columns from the other four tables. 

Regards,
Nikhil Chenna

Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!

v-xiaosun-msft
Community Support
Community Support

Hi @cyborgandy ,

 

I wonder whether you can describe more clearly about the calculation logic of "Previous Month Spend" and "Current Month Spend" which you need in your output and the relationships between four tables. Provide clear description in order that we can help you further more.

 

Best Regards,
Community Support Team _ xiaosun

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

FreemanZ
Super User
Super User

could you also explain the relationships between the four tables?

ERD
Super User
Super User

@cyborgandy , 

1. Your second table doesn't have dates. Does the column name 'Actual Cost' mean that you always have values for CURRENT month only in this table? If so, in your resulting table you will only have 'Current Month Spend' for the 'Hotel' Product Area. If not, it will be impossible to determine values for Previous/Current Month Spend.

2. I would append processed tables in Power Query first and then you might create some measures as an option...

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

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors