This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 May 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 |
|---|---|
| 27 | |
| 25 | |
| 22 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 50 | |
| 47 | |
| 23 | |
| 18 | |
| 18 |