Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Tarak_G
Microsoft Employee
Microsoft Employee

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 AcknowledgeNo SupportHours90
Time to MitigateNo0SupportHours360
Time to MitigateNo1SupportHours360
Time to MitigateNo2SupportHours480
Time to MitigateNo3SupportHours4320
Time to MitigateNo4SupportHours4320
Time to ResolveNo0SupportHours7200
Time to ResolveNo1SupportHours7200
Time to ResolveNo2SupportHours7200

For Example: -- This  Duration needs to be passed from sla Duration  table based on severity  && KPI= TimeToMitigate && severiry 0,1 && Value =Duration i.e,360

 

Calculated Column has been written in the attached pbix file :

TimeToMitigate_SLA = IF ( OR(Incidents[Severity]=0,Incidents[Severity]=1) &&
Incidents[TTM] <=360  -- Need to Pass value from table based on severity and Kpi= TimetoMitigate
&&
Incidents[Severity]=2 &&Incidents[TTM] <=480 &&
OR(Incidents[Severity]=3,Incidents[Severity]=4) && Incidents[TTM] <= 4320,
"With In SLA","Out Of SLA")
 
 

 

Thanks,

Tarak

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

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:

 

v-kelly-msft_1-1613371240820.png

 

 

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!

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

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:

 

v-kelly-msft_1-1613371240820.png

 

 

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!

amitchandak
Super User
Super User

@Tarak_G , what do mean by query here?

a measure or a new column in another table?

 

Copy value from one table to another - https://www.youtube.com/watch?v=czNHt7UXIe8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Here query means calculated column and attched pbix file.  I tried with lookupvalue but i was not able to get it. Can you help me on that ?

@Tarak_G , Still not clear, But a new column like this in Incident table

 

Column = SWITCH(TRUE(), ISBLANK([TTM]) , "Not Done" ,[TTM] > maxx(FILTER(SLATime, SLATime[KPI] ="Time to Mitigate"  && SLATime[Severity] = Incidents[Severity] ),SLATime[Duration]), "Out of SLA", "In SLA")
Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors