Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
102 | |
84 | |
79 | |
70 |
User | Count |
---|---|
120 | |
110 | |
95 | |
82 | |
77 |