Forum Discussion
Paginated report parameter in DAX
Yes you should be able too if your query is also an expression.
Yes, it is a DAX expression that is created in the Design mode. Is that what you are saying?
- bradsy5 years ago
Microsoft Employee
It takes a bit of finageling, but you can probably get it to work. A very simple expression example for a SQL query. ="Select * from " & Parameters!Customers.Value
Yours might be more like ="COUNT(" & Parameters.parameter_TableName.Value + "[Field1])"
- Markzolotoy5 years ago
Impactful Individual
this is not working
CALCULATE(COUNT(Parameters.tablename.Value[field]). Its' not even running
- bradsy5 years ago
Microsoft Employee
It will not run in the query designer, only as an expression as your dataset. The syntax needs to be ="COUNT(" & Parameters.parameter_TableName.Value & "[Field1])" similar to shown in the picture.
- Markzolotoy5 years ago
Impactful Individual
Ah, I see my mistake. Where would I build that expression?