Forum Discussion
Creating an average
- 1 year ago
Hi sbott ,
Thanks for posting your query in the Microsoft Fabric Community. I would like to suggest another tested approach that works effectively even without a separate date table, especially if you already have a MonthYear field in your main table.
Monthly Average Hours = VAR TotalHours = SUM('Table'[Sum of Hours]) VAR VisibleMonths = DISTINCTCOUNT('Table'[MonthYear]) RETURN DIVIDE(TotalHours, VisibleMonths)FYI:
Thanks for your response sbott .
I've attached a PBIX file for more details. Please review it and let me know your insights.
If my response solved your query, please mark it as the Accepted solution to help others find it easily.
And if my answer was helpful, I'd really appreciate a 'Kudos'.
Hi sbott ,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank You.
- sbott1 year agoHelper I
Apologies, I tried it last week and it didn't come out right, but I have been busy this week so not yet had time to try again.
- V-yubandi-msft1 year agoCommunity Support
Hello sbott ,
Thank you for your response, sbott. If possible, please try it and let us know the result. For any future questions or discussions, we encourage you to continue engaging with the community.
ā Yugandhar
Community Support Team.