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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kumarun
Helper I
Helper I

lookup values

Hi, folks,

I have two tables Table1 and Table 2

I need the start_date and end date from Table 2 so here I just mapped with emp_id = emp_id, so I'm getting the results like this. it's taking first-entry records only because I'm using the first nonblank function.

NOTE: Emp_id column is only possible for mapping 

Table 1.PNG Table 2.PNG
I need the output like below

2ede7115-99eb-478b-bacf-bff53853a57d.png




2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Kumarun Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

EMPLOYEE INFO PA0001 TABLE

VISA_IDSTART DATEEND DATE
15706-12-2231-12-22
15701-01-2331-12-99
15801-12-202131-12-2022

 Here single employee has two records and different start date and end date so i need start date and end date column from this table to emp visa request table so by using the below formula 

formula: = CALCULATE(
FIRSTNONBLANK(
Employee_info_pa0001[start_date],1),
FILTER(
ALL(Employee_info_pa0001),Employee_info_pa0001[emp_id]=Emp_Visa_Request[visa_requester_id]))

getting the results like below 
EMP VISA REQUEST TABLE

visa_idstart dateend date
15706-12-2231-12-22
15706-12-2231-12-22
15706-12-2231-12-22
15706-12-2231-12-22
15801-12-202131-12-2022


In the main table single employee has one record or morethan one record but here it is picking the first entry date only not all the date. so i need all the dates how can i get it?


output

VISA_IDSTART DATEEND DATE
15706-12-2231-12-22
15701-01-2331-12-99
157  
157  
15801-12-202131-12-2022


in the output need all the dates from main table but the issue is i have only employee column for maping there is no other column to getting different dates.


 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors