Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
Thanks everyone for the comments for my previos posts.
I have one more question which I would like to clarify, Is there a way to parameterize values in Measures.
For eg: I have created a measure like below in which I would like to parametrize the Yearmonth value(highlighted), pls let me know even if we have any workarounds for this.
Total Sales = CALCULATE(
SUM('Headcount Data'[May-17]),
FILTER(Year_Month,Year_Month[Year_Month]=201705)
)
Regards,
Solved! Go to Solution.
@Anonymous,
Currently, we cannot use a parameter in a calculated 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.
Regards,
Chalrie Liao
None of these are useful. In all these solutions, you are 'hardcoding' the value. How can we allow the user to change the parameter value in the report (i.e. like a slicer)?
Hi,
Does anyone know is the opposite is possible? Can I store the value of a measure into a parameter?
@Anonymous,
Currently, we cannot use a parameter in a calculated 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.
Regards,
Chalrie Liao
I would like to learn more about this approch.
Do you have an videos or other material you could suggest?
Hi @Anonymous
You could always use another measure for this.
eg create a calculated measure like this. You could even create a measure table called My Parameters to group them all together.
My Param = 201705
and then drop this into your other formula
Total Sales = CALCULATE(
SUM('Headcount Data'[May-17]),
FILTER(Year_Month,Year_Month[Year_Month]=[My Param])
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |