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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Freakaholic
New Member

Need to do a lookup value from 1 table and return a value from a match in a 2nd table (many to one)

Trying to take a SAP report and visualize it in PBI.

 

Table 1: Each line show the source bin of a material pick ( relationship MANY )

Table 2: Each source bin is here unique (column 1) and has a point value (column 2) ( relationship ONE )

 

I manage to set op a report that shows the points for all picks as long as the picks are from unique sources, if a pick is from the same source 2 or more times only this first is counted.

 

How can i set this up to work??

 

Table 1 example:

TO NumberMaterialTypSource BinTypDest. Bin  Dest.target qtyAUnCreated OnUserConf-dateUserConf.t.
125776310537932P07-C4-01921TRANSFER100M16.03.2016COP16-03-2016COP09:07:44
1257827101803413P07-A1-01921TRANSFER100M16.03.2016COP16-03-2016COP10:44:02
125695110146692P07-C4-01921TRANSFER48,7M15.03.2016COP15-03-2016COP11:02:20

 

Table 2 example:

 

Source labelPoints
P07-C4-012
P07-A1-013

 

Result returned should be 7, but I can only get it to show 5

4 REPLIES 4
Sean
Community Champion
Community Champion

@Freakaholic Can you explain how you come up  with 7?

 

So you are looking to

 

multiply for each Source label in Table 2 => the Point Value from Table 2 * the Count of all related source bins

 

Is this is how you come up with 7

 

Source Label => Point Value * COUNT of Source bIn in Table 1

P07-C4-01 =>  2 * 2 => 4
P07-A1-01 =>  3 * 1 => 3

 

 

Hi Sean,

 

7 is reached as you describe:

 

a pick in P07-C4-01 is worth 2 point - so two picks equals 4 points

a pick in P07-A1-01 is worth 3 point - so one pick equals 3 points

 

Giving a total of 7 points

 

I do this in excel today with a VLOOKUP that returns the result that I then sum up

I can get PBI to do the magic as long as there isn't more than 1 pick in each source, if i have more identical pick from same source it will only count the first

 

Sean
Community Champion
Community Champion

@Freakaholic I got it working with calculated columns - see picture...

Point x Count.png

Partially works with Measures too

grand total doesn't sum the rows but multiplies total points (3+2) times (2+1)

Its really late here - will give it another try tomorrow...

Appreciate your effort Smiley Happy

 

Sleep tight

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.