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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kseeger
Regular Visitor

Get data from other table one to many.

Hi,

I need help to solve the below:

 

I have a table consisting of my cases. This table has an ID field. I want to get data from my calculation table, this table also have an ID field (many times) as well as an hours field. I want to get the total amount (sum) of hours for each ID in the case table.

 

I have tried several things, without luck.

 

Total hours = LOOKUPVALUE('CG$PV Job Calculation Detail'[Timer kalkuleret];'CG$PV Job Calculation Detail'[ID]='CG$PV Case'[ID])

3 REPLIES 3
Nathaniel_C
Super User
Super User

Hi @kseeger ,

Are the tables joined by a relationship? 1 to many? Then you should be able to traverse that relationship to get the data.  Are you doing this in Power BI?

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




@kseeger ,

 

Here is the measure and below is the relationship.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

 

 

Cases.PNGf

 

Cases1.PNG





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

Proud to be a Super User!




Hi @kseeger 

If you change the relationship filter to single, you can drop the two columns on a matrix with no measure.

 

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

 

Cases 3.PNG

 

 

Cases2.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors