Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a table called: WorkOrders. Each line within this table has a separate Workordernumber. The table contains a column with ContractNumber and a column with UrgencyCode as in the example.
I want to link this to another table called: Urgencytimes. This table has the corresponding rows Contractnumber and Urgencycode.
If this works, I want to link the columns DiscriptionTime and TimeHours from the table Urgencytimes to the Workordernumbers from table Workorders.
Concrete example:
I want to have the Workordernumber 1200-12 linked to the 1 hour from the TimeHours column. So that I can subtract the RealResponsetime: 0.5 and the TimeHours: 1.
Would be nice if someone could help me!
Solved! Go to Solution.
You need to make a couple design decisions here
- either unpivot the workorders table or pivot the UrgencyTimes table to bring them into the same format
- create a composite key ("contractnumber-urgency") that you can then use to join the tables in the data model, or use TREATAS
please confirm if that is acceptable. Attached is a version using TREATAS
You need to make a couple design decisions here
- either unpivot the workorders table or pivot the UrgencyTimes table to bring them into the same format
- create a composite key ("contractnumber-urgency") that you can then use to join the tables in the data model, or use TREATAS
please confirm if that is acceptable. Attached is a version using TREATAS
Hi,
I do not understand. Show the expected result clearly. Share data in a format that can be pasted in an MS Excel file.
Hi,
I can't share documents in here?
Hi,
Upload the file to Google Drive and share the download link here. Please show the expected result very clearly.
Hi,
Thanks.
This is the link to the document:
Here is the example of the data. The Workorders table and the UrgencyTimes table as mentioned in the top message.
I want to know the difference between, in this example, the RealResponstime(Hours) from the Workorders table and the TimeHours from the Urgencytimes table. I think the Workorders table should be linked to the UrgencyTimes table for this.
For example, in the Workorders table at Workordernumber 1100-14 with Contractnumber 1100, you see Urgencycode HIGH with a RealResponstime(hour) of 1.75 (this is how much time it actually took). In the table UrgencyTimes, you see Contractnumber 1100 and in the same line Urgencycode HIGH, DiscriptionTime Responsetime, TimeHours 2(this is the time in which it has to be done).
I want to compare the RealResponstime(hour) of 1.75 with the TimeHours of 2. This gives a result of 0.25, so I can see that the requirements are met in this case.
I hope this is clear.
Access Denied message.
Fixed
Hi,
This calculated column formula in Tabel1 works
=CALCULATE(SUM(Tabel2[TimeHours]),FILTER(Tabel2,Tabel2[Contractnumber]=EARLIER(Tabel1[Contractnumber])&&Tabel2[Urgencycode]=EARLIER(Tabel1[Urgencycode])&&Tabel2[DiscriptionTime]="starttime"))
Hope this helps.
Hi,
Thanks for the effort but unfortunately it doesn't work if I do it in Power BI.
It doesn't give an error but I don't get any results out of it. Not even if I put them formula together with the Contractnumber and Workorder in a table.
You are welcome. It will work very well in PowerBI Desktop. Please try again.
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. I cannot use screenshots of your source data.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Hi,
This is the link to the document:
Here is the example of the data. The Workorders table and the UrgencyTimes table as mentioned in the top message.
I want to know the difference between, in this example, the RealResponstime(Hours) from the Workorders table and the TimeHours from the Urgencytimes table. I think the Workorders table should be linked to the UrgencyTimes table for this.
For example, in the Workorders table at Workordernumber 1100-14 with Contractnumber 1100, you see Urgencycode HIGH with a RealResponstime(hour) of 1.75 (this is how much time it actually took). In the table UrgencyTimes, you see Contractnumber 1100 and in the same line Urgencycode HIGH, DiscriptionTime Responsetime, TimeHours 2(this is the time in which it has to be done).
I want to compare the RealResponstime(hour) of 1.75 with the TimeHours of 2. This gives a result of 0.25, so I can see that the requirements are met in this case.
I hope this is clear.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.