Forum Discussion
Markzolotoy
Impactful Individual
3 years agoRun DAX expression conditionally
Let's say I have the following expression:
EVALUATE SUMMARIZECOLUMNS('RealTimeServiceTypeSummary'[PointCount], 'RealTimeServiceTypeSummary'[RealTimeServiceTypeName])
This expression is a query fo...
- 3 years ago
Markzolotoy try this:
DEFINE VAR __RunQuery = FALSE () --set value to TRUE () if you want to run the query EVALUATE SUMMARIZECOLUMNS( 'RealTimeServiceTypeSummary'[PointCount], 'RealTimeServiceTypeSummary'[RealTimeServiceTypeName], FILTER ( 'RealTimeServiceTypeSummary', __RunQuery ) )
parry2k
Super User
3 years agoMarkzolotoy try this:
DEFINE
VAR __RunQuery = FALSE () --set value to TRUE () if you want to run the query
EVALUATE
SUMMARIZECOLUMNS(
'RealTimeServiceTypeSummary'[PointCount],
'RealTimeServiceTypeSummary'[RealTimeServiceTypeName],
FILTER ( 'RealTimeServiceTypeSummary', __RunQuery )
)