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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Looking up Multiple values

amitkumar93_0-1607512257250.png

I have 3 tables as shown above,
I have a 1-Many relationship between Table2 and Table 1,
another 1-Many relationship between Table2 and Table 3

I want to create a tabular visual in power bi where i want to add Name,ID,Date & Campaign name
The table should look like below

 

Capture.PNG

 

is it possible to lookup the multiple values of campaign and Date from table 1 using DAX assuming relationship between table 1 and table 2 is not active 

PS: This is not my original daaset, this is a sample dateaset created in excel as i cant show my original dataset here for data privacy.
 

 

 

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Anonymous 

is this what you want?

 

Measure = CALCULATE(max(Table2[Customer Name]),FILTER(Table2,Table2[ID]=MAX(Table1[ID])))

 

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Works!! thank you Ryan 

ryan_mayu
Super User
Super User

@Anonymous 

is this what you want?

 

Measure = CALCULATE(max(Table2[Customer Name]),FILTER(Table2,Table2[ID]=MAX(Table1[ID])))

 

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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