Forum Discussion
Spencer
10 years agoHelper II
Summarize Columns - Keeping blank rows
Hi, and apologies in advance if I'm missing something really simple. (Just haven't been able to find a solution elsewhere). I'm creating a new table by using the SUMMARIZECOLUMNS function and am ...
Anonymous
10 years agoNot applicable
Hi lmf232s,
Velarde’s point seems well, but in summarizecolumns function, it has an option [ignore] to keep the blank rows.
Sample:
I create two tables, ‘Product’(ID,Name) and ‘Record’(ProductID,Amount).
‘Product’:
‘Record’:
Then use SUMMARIZECOLUMNS function create a total table:
Table= SUMMARIZECOLUMNS('Product'[Name],"Total",sum(Record[Amount]))
Add the ignore option to show all the record.
Table = SUMMARIZECOLUMNS('Product'[Name],"Total",IGNORE(sum(Record[Amount])))
I modified your formula and add the ignore option:
MonthlyJoined = SUMMARIZECOLUMNS('Employee Master'[MonthJoined],"Starters",IGNORE ( COUNTROWS('Employee Master')))
Reference:
SUMMARIZECOLUMNS Function (DAX)
Regards,
Xiaoxin Sheng