Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have data for percentage of time people spend on a project. It looks like this:
Team Member | Project | October 2021 | November 2021 | December 2021 | January 2022 | February 2022 | March 2022 | April 2022 |
Adam | Project Alpha | 40% | 40% | 40% | 40% | 40% | 40% | 40% |
Adam | Project Beta | 40% | 40% | 40% | 40% | 40% | 40% | 40% |
John | Project Alpha | 25% | 25% | 25% | ||||
John | Project Beta | 100% | 100% | 100% | 100% | 100% | 100% | 100% |
Alan | Project Beta | 100% | 100% | 100% | 100% | 100% | 100% | 100% |
What I want is to be able to sum the rows, but average across columns as I drill up in dates. So, if I set my rows as Team Member in a table, I should see this:
Team Member | October 2021 | November 2021 | December 2021 | January 2022 | February 2022 | March 2022 | April 2022 |
Adam | 80% | 80% | 80% | 80% | 80% | 80% | 80% |
John | 100% | 125% | 125% | 125% | 100% | 100% | 100% |
Alan | 100% | 100% | 100% | 100% | 100% | 100% | 100% |
That's easy. However, if I drill up on or summarize the columns to Quarters or Years, if should look like this:
Team Member | Q4 2021 | Q1 2022 | Q2 2022 |
Adam | 80% | 80% | 80% |
John | 116.6% | 108.3% | 100% |
Alan | 100% | 100% | 100% |
Team Member | 2021 | 2022 |
Adam | 80% | 80% |
John | 116.6% | 106.25% |
Alan | 100% | 100% |
How can I work my formula to do that?
Solved! Go to Solution.
Try averaging at the year-month level of granularity.
MonthlySumAvg =
AVERAGEX (
SUMMARIZE ( dimDate, dimDate[Year], dimDate[Month] ),
CALCULATE ( SUM ( dataTable[Complete%] ) )
)
Hi @jsangerman ,
Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thanks in advance for your kind cooperation!
Hope it helps,
Community Support Team _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Try averaging at the year-month level of granularity.
MonthlySumAvg =
AVERAGEX (
SUMMARIZE ( dimDate, dimDate[Year], dimDate[Month] ),
CALCULATE ( SUM ( dataTable[Complete%] ) )
)
That seems to do it. Thanks, Alexis.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |