Forum Discussion
Anonymous
6 years agoNot applicable
Removing total value in report
How can I remove total value in report with following dax code: select_identity:=
Var identity = CALCULATE(FIRSTNONBLANK(VALUES('identity'[identity description]);1))
Var identitydb= CALCULATE(...
- 6 years ago
Anonymous
You can use ISINSCOPE for this.
The measures I'm using in this example are:
1) your calculation
Switch = VAR Identity = MAX('Sample'[Identity]) VAR dbident = MAX('Sample'[Indetitydb]) RETURN IF( ISBLANK(Identity), dbident, Identity)2) Measure to remove total:
Remove total = IF(ISINSCOPE('Sample'[Index]), [Switch])To get his:
PaulDBrown
Community Champion
6 years agoAnonymous
You can use ISINSCOPE for this.
The measures I'm using in this example are:
1) your calculation
Switch =
VAR Identity = MAX('Sample'[Identity])
VAR dbident = MAX('Sample'[Indetitydb])
RETURN
IF(
ISBLANK(Identity),
dbident,
Identity)
2) Measure to remove total:
Remove total = IF(ISINSCOPE('Sample'[Index]), [Switch])
To get his: