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.
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
Hi,
Does anyone know is the opposite is possible? Can I store the value of a measure into a parameter?
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
Hi @ravsha85
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]) )
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!
User | Count |
---|---|
360 | |
105 | |
63 | |
51 | |
49 |
User | Count |
---|---|
335 | |
119 | |
83 | |
68 | |
62 |