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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhmiller89
Helper V
Helper V

Supplemental Spreadsheet Use

I have an Excel file that is a list of Job Numbers considered "Projects"

 

I have a relationships created between the Job Numer of the Excel spreadsheet and a table from SQL called "JobSummary." 

 

"JobSummary" is a table listing every job in the system. 

 

I am trying to write measures but need to be able to only calculate data IF JobNumber in "JobSummary"= Job Number considered "Project"

 

I wanted to initially write is as a calculated column saying =IF(JobSummary[JobNumber]= ProjectJobs[JobNumber], "Project", "Not Project")  but nothing works. BI won't recognize the ProjectJobs[JobNumber] as an option to put into the calculations 

1 ACCEPTED SOLUTION
v-caliao-msft
Employee
Employee

@bhmiller89,

 

Based on your dscription, you need to check if the current JobNumber exist on another table or not, right?

 

If that is the case, you can use lookupvalue function to check if this value exist on that table or not.

IsProject = IF(ISBLANK(LOOKUPVALUE(ProjectJobs[JobNumber ],ProjectJobs[JobNumber ],JobSummary[JobNumber ])),"Project","Not Project")

Capture.PNG

 

Reference
https://msdn.microsoft.com/en-us/library/gg492170.aspx?f=255&MSPPError=-2147217396

 

Regards,

Charlie Liao

View solution in original post

1 REPLY 1
v-caliao-msft
Employee
Employee

@bhmiller89,

 

Based on your dscription, you need to check if the current JobNumber exist on another table or not, right?

 

If that is the case, you can use lookupvalue function to check if this value exist on that table or not.

IsProject = IF(ISBLANK(LOOKUPVALUE(ProjectJobs[JobNumber ],ProjectJobs[JobNumber ],JobSummary[JobNumber ])),"Project","Not Project")

Capture.PNG

 

Reference
https://msdn.microsoft.com/en-us/library/gg492170.aspx?f=255&MSPPError=-2147217396

 

Regards,

Charlie Liao

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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