Forum Discussion
Paginated report parameter in DAX
this is not working
CALCULATE(COUNT(Parameters.tablename.Value[field]). Its' not even running
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.
- bradsy5 years agoMicrosoft Employee
Write your query, then edit the dataset(right click in the left side dataset section where your dataset is). There is an expression button next to the query, can see in picture.
- Markzolotoy5 years agoImpactful Individual
So, the expression would be something like this:
="EVALUATE COUNT(" & Parameters.parameter_TableName.Value & "[Field1])"
- Markzolotoy5 years agoImpactful Individual
Here is my test code:
="EVALUATE
CALCULATETABLE(
SUMMARIZECOLUMNS(
"High_Count", CALCULATE(COUNT(" & "FilteredTable1" & "[Severity]),FilteredTable1[Severity]="High"),
"Informational_Count", CALCULATE(COUNT(FilteredTable1[Severity]),FilteredTable1[Severity]="Informational"),
"Low_Count", CALCULATE(COUNT(FilteredTable1[Severity]),FilteredTable1[Severity]="Low"),
"Medium_Count", CALCULATE(COUNT(FilteredTable1[Severity]),FilteredTable1[Severity]="Medium")
)
)"Error:
[BC30205] End of statement expected.