The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hello,
I have a table with a number by person by date. I want to calculate the average for current month/month(s) previous.
I've tried 2 calculations, neither work:
Understand the preference is to provide a pbix file. I unfortunately am not able to do that. Appreciate any help anyone is willing to provide without pbix files. I am very close to getting to what I need, but am missing something small I think..
Solved! Go to Solution.
@kressb - Are these calculated columns or measures? Look like calculated columns. Try:
Average#MTD= AVERAGEX(Filter(Table,Table[Date].[Date]<=EARLIER(Table[Date].[Date] && [Name]=EARLIER(Table[Name])),Table[Number])
@kressb - Are these calculated columns or measures? Look like calculated columns. Try:
Average#MTD= AVERAGEX(Filter(Table,Table[Date].[Date]<=EARLIER(Table[Date].[Date] && [Name]=EARLIER(Table[Name])),Table[Number])
Yepp! That did it - THANK YOU very much for the help!
User | Count |
---|---|
57 | |
54 | |
53 | |
47 | |
31 |
User | Count |
---|---|
175 | |
88 | |
69 | |
48 | |
47 |