cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bkreutz
Frequent Visitor

Lookup Max Value from another table while keeping Report Filter

Hello!

 

I am trying to look up the maximum "utilization category" in Table 1 for each "item" and bring it into Table 2 as a calculated column to use as a slicer. The challenge I am running into is that the report will have a Year slicer and I need to specifically pull in the maximum Utilization Category within the filtered year range.

 

Table 1 is structured as below:

ItemYearUtilization Category
120184
120192
120201
220181
220193
220202

 

Table 2 is structured as below. I have left out unnecessary columns, but know that the Item column may have duplicate item numbers.

 

Item

1
1
2
2

 

For example, if the Year is filtered from 2018-2019, the resulting column in  Table 2 would be:

 

ItemMax Utilization Category
14
14
23
23

 

If the filter was from 2019-2020, the resulting table would be

ItemMax Utilization Category
12
12
23
23

 

Is this possible? Thanks in advance for any help!

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@bkreutz 
You may create the following column in table 2, but there is not enough details in table 2, the unnecessary columns are important when you create the relationship between the two tables. Please add more to the table 2 sample. You should have a year column since you want to filter by year.

 

V-pazhen-msft_0-1619073630139.png



Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@bkreutz 
You may create the following column in table 2, but there is not enough details in table 2, the unnecessary columns are important when you create the relationship between the two tables. Please add more to the table 2 sample. You should have a year column since you want to filter by year.

 

V-pazhen-msft_0-1619073630139.png



Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

amitchandak
Super User IV
Super User IV

@bkreutz , how table 1 and table 2 are connected ??



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors