Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi, I would like to add an Average Column at the end of this table. Could someone please help?
The rows are 1and2, column is New_Month and Value is Acctamt.
Some of the months do not have values for instance total average of the first row below should be -677.39(Total) / 3(number of month that have values)
Solved! Go to Solution.
AverageColumn =
IF( HASONEVALUE('Table'[New_Month]),
IF( 'Table'[New_Month] IN {"1", "2"}, DIVIDE( SUM('Table'[Acctamt]), COUNTROWS(FILTER('Table', 'Table'[New_Month] IN {"1", "2"})) ),
BLANK() ),
BLANK() )
AverageColumn =
IF( HASONEVALUE('Table'[New_Month]),
IF( 'Table'[New_Month] IN {"1", "2"}, DIVIDE( SUM('Table'[Acctamt]), COUNTROWS(FILTER('Table', 'Table'[New_Month] IN {"1", "2"})) ),
BLANK() ),
BLANK() )
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |