Forum Discussion
AnaAlbano
5 years agoHelper I
Monthly Average Headcount
Hello Community! I´m starting my DAX journey and I wonder if you could help with this question: I´m trying to calculate the average headcount considering the beginning of the month and end of th...
amitchandak
5 years agoSuper User
AnaAlbano , for end of the month you can use closingbalancemonth with help from date table
or try lastnonblankvalue and firstnonblankvalue
example
calculate( lastnonblankvalue('Date'[Date], Sum(Table[Headcount])) + firstnonblankvalue('Date'[Date], Sum(Table[Headcount])) , allexpect(Table, Table[Month Year]))/2