Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
How can I use a Parameter in measure
Solved! Go to Solution.
Hi @parvathisuku_90 ,
We cannot use a parameter in a measure directly. To work around this requirement, we could create a query to store parameter value in a dataset, and then use this dataset value in your calculated measure. Please refer to the sample steps below.
1.Create a parameter in the Power Query Editor.
2.Create a blank query and edit the query in Advanced Editor.
3.Create a measure in your original table like below.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @parvathisuku_90 ,
We cannot use a parameter in a measure directly. To work around this requirement, we could create a query to store parameter value in a dataset, and then use this dataset value in your calculated measure. Please refer to the sample steps below.
1.Create a parameter in the Power Query Editor.
2.Create a blank query and edit the query in Advanced Editor.
3.Create a measure in your original table like below.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@parvathisuku_90 , Try like
calculate(AVERAGE('cbdb alarm_occurences'[qty_alarms_7day]),
'cbdb alarm_occurences'[grid_element_key]
IN { "75e76b7c-19f3-4119-a043-859331e74c12" })
This code is working perfectly
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.