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
I am pretty new to Power BI. Have a very basic question. I am preparing a roster report on a calendar matrix view based on excel data.
I have 2 tables - Master Roster Table which gives the data for a month and then there is a Roster Exception table. My requirement is I need to merge these 2 tables using employeeid and Schedule date as the join criteria and if records are found in the roster exception table, then the master roster table should be updated with these column values and new flag to be introduced saying that this is an exception roster.
How can we achieve this. I know its a very basic quetion. Pretty new to these things. Any pointers will be of great help
Regards
Febin Gafoor
Solved! Go to Solution.
Here is an example that might help...
If you have two tables such as,
'masterTable'
'exceptionTable'
You can merge the 'exceptionTable' into the 'masterTable' using the ID and Date columns as the key.
Expand only the exceptionValue in the merged column.
Your table should now look something like...
Add a column that determines which table's value we will end up with.
Now select the 'exceptionValue' column and choose 'Replace Values' from the 'Transform' ribbon...
Use 'null' as the value to find and a random number as the 'Replace With' value. It does not matter what number as we are changing it right away.
The function value should populate with...
Replace the '99999' with 'each [masterValue] and you should end up with...
You can now change remove the masterValue column if you do not need it for other purposes, change data types and rename columns as desired to end up with...
Hope this helps.
Proud to be a Super User! | |
Here is an example that might help...
If you have two tables such as,
'masterTable'
'exceptionTable'
You can merge the 'exceptionTable' into the 'masterTable' using the ID and Date columns as the key.
Expand only the exceptionValue in the merged column.
Your table should now look something like...
Add a column that determines which table's value we will end up with.
Now select the 'exceptionValue' column and choose 'Replace Values' from the 'Transform' ribbon...
Use 'null' as the value to find and a random number as the 'Replace With' value. It does not matter what number as we are changing it right away.
The function value should populate with...
Replace the '99999' with 'each [masterValue] and you should end up with...
You can now change remove the masterValue column if you do not need it for other purposes, change data types and rename columns as desired to end up with...
Hope this helps.
Proud to be a Super User! | |
Hi Febin,
So I would sugest the following (assuming you are using PBI Desktop):
That should be it.
Hope it helps
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 |
---|---|
17 | |
9 | |
8 | |
7 | |
7 |