Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
Last months I was creating my first PowerBI report which is working, but I would like to improve the data model/flow for which I need some advice.
The report is basically showing an overview of all projects (excel) , actual cost (sap) and the forecasted cost (excel).
I have basically 2 main tables
The tables are connected with a SAP code.
Now the problem is that it could happen that a project is not not created yet in SAP and that there is no SAP code. Hence, I can not create a connection with SAP and EXCEL (one-to-many).
Is there a way to solve this? Or what is the work-around?
Regards
ok thanks -
so basically I can create a dummy sap code and merge all sap codes in one table and remove the duplicates.
Hello
what you can do is create a table using powerQuery that have the union of the SAP code of both tables
next remove the duplicates
on your model connect this table to the other 2 tables using 1 to many relation
the new table will e able to filter both table
Hello @YBZ ,
You need to have a code in the sap data that reference that this transaction for this project so you could match the data with each project, or else how would you know that this data is for this project. so you need to have a foreign key to do a relationship.
And like generally, the best for data modeling is the star schema model https://learn.microsoft.com/en-us/power-bi/guidance/star-schema
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
73 | |
58 | |
35 | |
31 |
User | Count |
---|---|
99 | |
57 | |
56 | |
46 | |
40 |