Parameters in DAX Measures
DAX is a functional language that does not allow you to create functions. However, if you need to pass a parameter to an algorithm, you can use a measure passing a value through a filter argument in CALCULATE, as described in the following article. An expression in DAX can invoke the execution of another expression by referencing another measure. For example, you can write:
Read more...