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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors