0
votes

i am trying to create a calculated column in Excel which should contain values from related tables. I tried looking into the Lookup function but this looks too complicated for my knowledge.

I have an Incident table where i want to have a calculated Column named closdBy. In this column i want to put the name of the operator that closed the incident. Every incident has many mutation entries which are stored in a Mutations table. This Mutations table has 1 statusID which comes from another related table named Status

In the calculated Field closedBy i want the calculated column to display the Name of the operator whose name matches the statusID Closed The name of the operator comes from the Operator table.

Anyone can help me with this ? Would appreciate it a lot.

Tables

POWER BI Example: https://ufile.io/z0g4x

Excel Example: https://ufile.io/6adju

2
hi Please provide some sample data so that will try to resolve it - sanjay kumar
it seems that the data model needs some adjustment: (1) add an "incidentID" column to the Mutations table; (2) rename the "mutationID" column in the Incident table to "incidentID", which is related to the same-named column in the Mutations table - DAX0110
I have added the sample data here: ufile.io/6adju So in power pivot i want to add the correct values for Resolved by and Closed by - Bjorn Morrhaye
@DAX0110 I understand what you pointed out but it shouldn't make a big diffrence. I just renamed mutationID to incidentID - Bjorn Morrhaye
I have also added a Power BI file in the original post - Bjorn Morrhaye

2 Answers

1
votes

required result in incident table (download PowerBI file) :

enter image description here

I have made some modification in relationship between table incident and mutation

created a column in mutation table ID_Closed = IF(Mutation[statusID]="{CLO}",Mutation[ID],CONCATENATE(Mutation[ID],Mutation[statusID]))

enter image description here

enter image description here

Hoping this will help!

0
votes

This is how my table looks like. The mutation table can have the same value for status (see {CLO} but I want to have the field Closed By and Resolved by in the Incident table to display the most recent Operator.

I have here an adjusted PowerBi file with more data: https://ufile.io/20u0v

enter image description here