Forum Discussion
Anonymous
5 years agoNot applicable
Adding condition for DAX calculate and filter expression
Hi all, I am working on creating a Title card for my dynamic report and need some help. I have a list of holding companies and I want to create an expression that will allow the user to filte...
Anonymous
5 years agoNot applicable
Greg_Deckler Hi Greg, I'm not sure I fully understand the measure. I just want to add "All Accounts" at the end of the measure?
Greg_Deckler
Community Champion
5 years agoAnonymous Not much to go on but maybe:
Title =
VAR __TOTAL_ROWS = COUNTROWS(DISTINCT(ALL('Table1'[account])))
VAR __CURRENT_ROWS = COUNTROWS(DISTINCT('Table1'[account]))
RETURN
IF(__TOTAL_ROWS = __CURRENT_ROWS(
"All accounts",
"Report C-" & CALCULATE(FIRSTNONBLANK(Table1[account], TRUE () ), FILTER (Table1, Table1[HoldingCompany] = TRUE ())
)