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.
Hi
I'm looking for a solution that lets me create a measure linked to a parameter If Qty Invoiced in "0".
Measure= If qtyinvoiced "0"; Qty Sent * Parameter
Is this possible?
Thank you in advance!!!!

Solved! Go to Solution.
Hi @cocoloco79
So if Qty Invoiced is 0 the result is Qty Sent * Parameter?
Try this
Measure = IF(MAX('Query1'[Qty Invoiced]) = 0 , MAX('Query1'[Qty Sent]) * Parameter)
Regards
Phil
Proud to be a Super User!
Hi Phil, thank you very much! Your formula works but only if I select one single product.
I changed the formula to this:

Hi, @cocoloco79
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create a what-if parameter as below.
Then you may create the following measure.
Result =
IF(
MAX('Table'[Qty invoiced])=0,
SELECTEDVALUE(Parameter[Parameter])*SUM('Table'[Qty sent])
)
Finally you may use parameter to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @cocoloco79
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create a what-if parameter as below.
Then you may create the following measure.
Result =
IF(
MAX('Table'[Qty invoiced])=0,
SELECTEDVALUE(Parameter[Parameter])*SUM('Table'[Qty sent])
)
Finally you may use parameter to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Phil, thank you very much! Your formula works but only if I select one single product.
I changed the formula to this:

Hi @cocoloco79
So if Qty Invoiced is 0 the result is Qty Sent * Parameter?
Try this
Measure = IF(MAX('Query1'[Qty Invoiced]) = 0 , MAX('Query1'[Qty Sent]) * Parameter)
Regards
Phil
Proud to be a Super User!
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 |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |