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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Dalton948
Frequent Visitor

Is it possible to filter on more than one condition?

I am having difficulties achieving one aspect with my formula which is adding a second condition on a Filter(All(

TTR(Minutes) = 
VAR _CurrentElement_ID = MAX(sys_journal_field[element_id])
VAR _tbl = FILTER(ALLNOBLANKROW(sys_journal_field, sys_journal_field[Team]),sys_journal_field[element_id]=_CurrentElement_ID || sys_journal_field[Team]="Blue Team")
var _maxDate =MAXX(_tbl,sys_journal_field[sys_created_on])
 
Var _sysID = MAX(Incident[sys_id])
Var _tblb = FILTER(ALL(Incident),Incident[sys_id]=_sysID)
Var _resolvedDate = MINX(_tblb,Incident[resolved_at])
 
Return
DATEDIFF(_maxDate,_resolvedDate,Minute)
 ------------------------------------------------------------------------------------------------------------------------------------------
In the above formula, I am needing the _tbl Variable to match on the specific element ID and also match the specific team name to filter out alot of unwanted data. It seems that multiple conditions are not allowed in this format. Are there any work arounds or suggestions available?
1 ACCEPTED SOLUTION
Dalton948
Frequent Visitor

Changing 

VAR _tbl = FILTER(ALL(sys_journal_field),sys_journal_field[element_id]=_CurrentElement_ID && sys_journal_field[Team]="Blue Team")

Was the solution

View solution in original post

2 REPLIES 2
Dalton948
Frequent Visitor

Changing 

VAR _tbl = FILTER(ALL(sys_journal_field),sys_journal_field[element_id]=_CurrentElement_ID && sys_journal_field[Team]="Blue Team")

Was the solution

Dalton948
Frequent Visitor

This has been solved.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors