Forum Discussion
Markzolotoy
2 years agoImpactful Individual
Run DAX expression conditionally
Let's say I have the following expression:
EVALUATE SUMMARIZECOLUMNS('RealTimeServiceTypeSummary'[PointCount], 'RealTimeServiceTypeSummary'[RealTimeServiceTypeName])
This expression is a query fo...
- 2 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 ) )
Greg_Deckler
2 years agoCommunity Champion
Markzolotoy Under what condition would it not run?