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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors