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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Dalton948
Frequent Visitor

Filter table and then apply formula to said filter

I am trying to do a lookupvalue formula on filtered data. I am having issues combining the two.

The goal is as follows:

Filter table 1 to only return values that = a sepcific value in a column.
Lookupvalue on table 1 to pull\match data from table 2.
Have a new column created that returns what im wanting onto table 1.

 

Currently i transform the data in table 1 and then do the lookup value. Trying to see if can consolodate it into a formula to save some space.

Quick example Table

Table 1 
NameCreated By
TaskJohn
IncidentMark
TaskCindy
IncidentAlbert
TaskTom
  
  
Table 2 
DepartmentName
ITJohn
ITTom


So i need to Filter to only return data that results in Task under the name column on table 1 and then i want to run a lookup value formula matching on name and returning IT from department when it matches. which looks like,

LOOKUPVALUE(table 2[department],table 2 [name],table 1[created_by]). But i'm having issues applying the filter and then adding that.




1 ACCEPTED SOLUTION
Dalton948
Frequent Visitor

Yeah, i wrapped my lookupvalue formula in an if() statement.

IF(Table1[NAME]="sc_task",lookupvalue(table2[department],table2[username],table1[created by]))

View solution in original post

3 REPLIES 3
Dalton948
Frequent Visitor

Yeah, i wrapped my lookupvalue formula in an if() statement.

IF(Table1[NAME]="sc_task",lookupvalue(table2[department],table2[username],table1[created by]))

Dalton948
Frequent Visitor

Solved with an if statement

Anonymous
Not applicable

Hi @Dalton948 ,

You mentioned that you have solved it, so could you please post your solution (DAX) below and accept it as a SOLUTION to make it easier for more users experiencing similar problems to find a solution faster, thank you!

Best Regards,
Dino Tao

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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 Kudoed Authors