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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
herbemischung
Resolver I
Resolver I

Problems combining 2 Tables

Hi, I have a very specific problem and I hope I am able to describe it good enough!

 

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

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:

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).

 

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.

 

 

 

 

1 ACCEPTED SOLUTION
LaurentCouartou
Solution Supplier
Solution Supplier

In your table Schlag_ID and Schlagebezeichnug_FE come from Flächenentwicklung.  

However, filters applied to this table do not propagate to the table Pivot.

 

You can either activate bi-directional filtering between Flächenentwicklung and Schlag_ID or add all relevant columns (Schlagebezeichnung_FE, Gemarkung_FE, ...) to your filter table (Schlag) or create measures using the following patterns:

 

-

CALCULATE( SUM(Pivot[Kosten])
   ; 'Flächenentwicklung'
)
CALCULATE( SUM(Pivot[Kosten])
   ; CROSSFILTER('Flächenentwicklung'[Schlag_ID];'Schlag_ID'[Schlag_ID], Both)
)

Note: Measures are untested.

 

View solution in original post

2 REPLIES 2
LaurentCouartou
Solution Supplier
Solution Supplier

In your table Schlag_ID and Schlagebezeichnug_FE come from Flächenentwicklung.  

However, filters applied to this table do not propagate to the table Pivot.

 

You can either activate bi-directional filtering between Flächenentwicklung and Schlag_ID or add all relevant columns (Schlagebezeichnung_FE, Gemarkung_FE, ...) to your filter table (Schlag) or create measures using the following patterns:

 

-

CALCULATE( SUM(Pivot[Kosten])
   ; 'Flächenentwicklung'
)
CALCULATE( SUM(Pivot[Kosten])
   ; CROSSFILTER('Flächenentwicklung'[Schlag_ID];'Schlag_ID'[Schlag_ID], Both)
)

Note: Measures are untested.

 

Sorry that I needed much time to test your formula, but it defenitly worked! Thank You!

 

best regards

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.