Quantcast
Viewing all articles
Browse latest Browse all 217217

Problems combining 2 Tables

Hi, I have a very specific problem and I hope I can describe it good enough!

 

I have 2 Tables with separate dates and ID's (Schlag_ID). The structure looks as follows:

Image may be NSFW.
Clik here to view.
1.jpg

 

If I want to get the Costs (Kosten) for an ID (for instance "S1") for a certain year, I just just add a filter with Datum = 2016 and ID = S1

 

It looks like that:

Image may be NSFW.
Clik here to view.
2.jpg

If I want to add the costs for each FlächeGesFE (squaremetres) I create the following measure:

Kosten_ha = divide(sum(Pivot[Kosten]);sum('Flächenentwicklung'[FlächeErtrFE])/10000;0)

 

When I add "Kosten_ha" to the list, I get the identifier (Schlagbezeichnung_FE) for every ID, the costs of S1 in every ID and 0 for all identifiers but the correct one (S1 = Hengsberg Q2).

 

Image may be NSFW.
Clik here to view.
3.jpg

 

I think the problem is how i set up the structure. I cant match Schlag_ID from [Flächenentwicklung] and [Pivot] without getting a problem with the date.

 

 

 

 


Viewing all articles
Browse latest Browse all 217217

Trending Articles