Forum Discussion

pbi_m1's avatar
pbi_m1
Frequent Visitor
8 years ago
Solved

Aggregation over LOOKUPVALUES

Hi,   I wonder how to best solve the following problem: There are 2 tables: table A with columns: DATE (date), GROUP (string), ID (int), PRICE(float) table B with columns: ID (int), FACTOR (float...
  • pbi_m1's avatar
    pbi_m1
    8 years ago

    Hi Greg, thanks for the link. I guess my databases was big so I thought describing a simplified version of it would be easier to understand. After another hour of googling I found I think the better way that I was looking for which is (column-by-column) in the 'Table' visualisation:

    GROUP,

    Measure1 = SUMX( A, RELATED(B[FACTOR]) ),

    Measure2 = SUMX( A, A[PRICE] * RELATED(B[FACTOR]))