Forum Discussion

marcos_osorio's avatar
marcos_osorio
Helper II
6 years ago
Solved

Calculation and filter problem

Hi, sorry to bother you, because I think this is a quite easy problem, but unitl now, cannot solve it.

 

I have two tables:

 

TableA                                             TableB

Size                                                   Size

Country                                            Country

Price                                                 Price2

KEY (Size&Country)                         Units

                                                        Key(Size&Coutry)

The two tables are related with the Key Field.

 

The problem is that I want to show on an Table this:

Size   Country  Price    Price2    PriceUnits

 

Where PriceUnits is the sum of the Units in TableB who have a Price2 > Price + 1

I tried with:   PriceUnits = calculate(sum(Tableb[Units]), TableB[Price2] > TableA[Price] + 1), I even tried with related but seems to not enable me this option.

 

Can you help me?

 

Thank you very much.

 

 

3 Replies