Forum Discussion

Tarak_G's avatar
Tarak_G
Icon for Microsoft Employee rankMicrosoft Employee
5 years ago
Solved

Value needs to be passed from table to Query

Hi Team,   I've two tables . one table is Incidents and another one : SLA Duration table   Need to calculate whether incident is WithInSLA or OutOfSLA    SLA Table Time to Acknowledge No ...
  • v-kelly-msft's avatar
    5 years ago

    Hi Tarak_G ,

     

    Not quite sure whether I have caught your point,you said :Need to Pass value from table based on severity and Kpi= TimetoMitigate,do you wanna create a column to get the value returned from "SLA Table"?

    Then you could create a column as below:

     

    _Duration = CALCULATE(MAX('SLATime'[Duration]),FILTER('SLATime','SLATime'[Severity]='Incidents'[Severity]&&'SLATime'[KPI]="Time to Mitigate"))

     

    And you will see:

     

     

     

    If I misunderstood your meaning,pls let me know.

     For the related .pbix file ,pls see attached.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!