This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 | Value1 | Value2 |
| Cat1 | 0.3 | 0.4 |
| Cat2 | 0.1 | 0.7 |
| Cat3 | 0.6 | 0.3 |
Then I have two what-if parameters, Parameter1 and Parameter2.
I want to create a measure that allows me to get Value1*Parameter1+Value2*Parameter2 for each category.
I tried to use a calculated column, but apparently calculated columns don't work with what-if parameters. Is there a way to create a measure that looks like this?
| Categories | Output |
| Cat1 | 0.3*Parameter1+0.4*Parameter2 |
| Cat2 | 0.1*Parameter1+0.7*Parameter2 |
| Cat3 | 0.6*Parameter1+0.3*Parameter2 |
Solved! Go to Solution.
@lizzy
You can try this meaure:
Output
= IF (
HASONEVALUE ( table[Categories] ),
SUM ( table[value1] ) * SELECTEDVALUE ( 'Parameter1'[value] )
+ SUM ( table[value2] ) * SELECTEDVALUE ( 'Parameter2'[value] )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@lizzy
You can try this meaure:
Output
= IF (
HASONEVALUE ( table[Categories] ),
SUM ( table[value1] ) * SELECTEDVALUE ( 'Parameter1'[value] )
+ SUM ( table[value2] ) * SELECTEDVALUE ( 'Parameter2'[value] )
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Perfect, thank you!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 23 | |
| 22 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 28 | |
| 22 | |
| 21 |