March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi Good day,
Can anyone assist me on my code, base from my current code i want to add filter on a specific column.
My current code:
I want to add filter on coloumn:
Table: BSP TA
Column 1: Project Name = ABCDE
Column 2: Main Cat. = Q
Solved! Go to Solution.
Hi @AllanBerces ,
As I understand it, you want to filter the table based on two column values and then use the LOOKUPVALUE later.
Please try as followings:
Base_Scope =
VAR ProjectName =MAX('BSP TA'[Project Name])
VAR MainCat = MAX('BSP TA'[Main Cat.])
VAR JobCard = MAX('BSP TA'[Job card])
RETURN
IF(
ProjectName = "ABCDE" && MainCat = "Q",
IF(
ISBLANK(
LOOKUPVALUE(
sign_off[sign off],
sign_off[Job Card],
JobCard
)
),
"Injected",
LOOKUPVALUE(
sign_off[sign off],
sign_off[Job Card],
JobCard
)
),
BLANK()
)
Sample data from the sign-off table:
Before:
After:
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-yajiewan-msft , @Ashish_Mathur
Good day,
I try the solution above but show blank. Can pls help me to solve my issue. Pls refer to the link.
https://drive.google.com/file/d/1NV1BiF6qCEq2L2HPMhYwim1Xxxfm1lCc/view?usp=sharing
https://drive.google.com/file/d/1NV1BiF6qCEq2L2HPMhYwim1Xxxfm1lCc/view?usp=sharing
Thank you
Hi,
Try this
Project Name = LOOKUPVALUE('Main Data'[Project Name], 'Main Data'[Job card], 'Sign off'[Job Card] ,'Main Data'[Main Cat.],"Q",'Main Data'[Project Name],"ABCDE")
This will return a blank because there is no ABCDE entry in the Project name column.
Hi @AllanBerces ,
You could try the following code:-
Project Name =
LOOKUPVALUE(
'Main Data'[Project Name],
'Main Data'[Job card], RELATED('Sign off'[Job Card]),
'Main Data'[Main Cat.], "Q",
'Main Data'[Project Name], "ABCDE"
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi follow up to my query
I want first to filter the table before it do lookup.
Table: BSP TA
Column 1: Project Name = ABCDE
Column 2: Main Cat. = Q
Hi,
Share some data to work with and show the expected result. Share data in a format that can be pasted in an MS Excel file.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |