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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
kivanct
Helper I
Helper I

Lookupvalue with Sum

Hi,

I would be appriciated if you could help me. I have two tables and both have duplicate values. So i am unable to use LOOKUPVALUE. 

MY FORMULA : LOOKUPVALUE = LOOKUPVALUE(ZS55[Miktar],ZS55[MAMUL NO],ZD83[Malzeme])


I have two tables == ZD83 & ZS55


ZS55 where I would like to get values of "Miktar" column. 

kivanct_0-1673510788212.png

 

My result table; 

kivanct_1-1673510883436.png


How can i get the sum of values located in "ZS55" table , "Miktar" Column ?



1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @kivanct ,

I created some data:

ZD83:

vyangliumsft_0-1673595635988.png

ZS55:

vyangliumsft_1-1673595635989.png

 

Here are the steps you can follow:

1. Create calculated column.

Way1 =
SUMX(
    FILTER(ALL(ZS55),
    'ZS55'[MAMUL NO]=EARLIER('ZD83'[Malzeme])),[Miktar])
Way2 =
var _select=SELECTCOLUMNS('ZS55',"1",'ZD83'[Malzeme])
return
SUMX(FILTER(ALL(ZS55),
'ZS55'[MAMUL NO] in _select),[Miktar])

2. Result:

vyangliumsft_2-1673595635990.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @kivanct ,

I created some data:

ZD83:

vyangliumsft_0-1673595635988.png

ZS55:

vyangliumsft_1-1673595635989.png

 

Here are the steps you can follow:

1. Create calculated column.

Way1 =
SUMX(
    FILTER(ALL(ZS55),
    'ZS55'[MAMUL NO]=EARLIER('ZD83'[Malzeme])),[Miktar])
Way2 =
var _select=SELECTCOLUMNS('ZS55',"1",'ZD83'[Malzeme])
return
SUMX(FILTER(ALL(ZS55),
'ZS55'[MAMUL NO] in _select),[Miktar])

2. Result:

vyangliumsft_2-1673595635990.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

@kivanct , Try like

 

LOOKUPVALUE = maxx(filter(ZS55,  ZS55[MAMUL NO] =ZD83[Malzeme]) , ZS55[Miktar])

 

or

 

LOOKUPVALUE = concatenatex(filter(ZS55,  ZS55[MAMUL NO] =ZD83[Malzeme]) , ZS55[Miktar], ", ")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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