Forum Discussion

lizzy's avatar
lizzy
Helper I
5 years ago
Solved

Dynamic Weighted Sum

I'm trying to create a dynamic weighted sum of different attributies of categories to get a total using user-adjustable parameters. My component table looks something like this: Categories Valu...
  • Fowmy's avatar
    5 years ago

    lizzy 

    You can try this meaure:

    Output
        = IF (
            HASONEVALUE ( table[Categories] ),
            SUM ( table[value1] ) * SELECTEDVALUE ( 'Parameter1'[value] )
                + SUM ( table[value2] ) * SELECTEDVALUE ( 'Parameter2'[value] )
        )