Forum Discussion
pstanek
10 years agoPost Patron
Measure with parameter
Is it possible to create measure with Parameter. For example pcena = Calculate( SUM(movement[pcena]); FILTER(movement; movement[date] >= DATE(2016;3;14) && movement[date] <=DATE(2016;4;30))) I...
v-caliao-msft
10 years agoMicrosoft Employee
Hi Pstanek,
According to your description, you need to add parameters to the DAX expression when creating a measure, right?
Based on my research, referencing parameters is currently supported via the Data Source dialogs, Filter Rows, Keep Rows (top/bottom, etc.), Remove Rows (top/bottom, etc.) and Replace Values. So it seems that it is not supported to use a parameter in measure.
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-april-update-feature-summary/
If you have any concern on this feature, you can submit your idea on the link below. If this feature was mentioned by mulitple users, product team will consider to add this feature to next release.
https://ideas.powerbi.com/forums/265200-power-bi-i
Regards,
Charlie Liao