Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Here is my data. I have sales by team and period I want to sum that for every period and then get an average of the sum for all periods by team so my result should look like the final chart.
period | sale | team | Period sum | Average period sum by team | |||||
Period 1 | 350 | blue | |||||||
period 1 | 150 | blue | Period 1 | 500 | |||||
period 2 | 250 | blue | 550 | ||||||
period 2 | 350 | blue | Period 2 | 600 | |||||
Period 1 | 50 | red | |||||||
period 1 | 40 | red | Period 1 | 90 | |||||
period 2 | 175 | red | 177.5 | ||||||
period 2 | 90 | red | Period 2 | 265 | |||||
WF13:V18 | |||||||||
Final chart | |||||||||
average sum of sales by period | |||||||||
Team | Average sum of sales | ||||||||
Red | 177.5 | ||||||||
Blue | 550 |
Solved! Go to Solution.
I think something like the below should work for you.
Measure =
AVERAGEX(
SUMMARIZE( 'Table', 'Table'[team ], 'Table'[period ] ),
CALCULATE( SUM( 'Table'[sale] ) )
)
Hi,
These measures work
S = SUM(Data[sale])
Measure = AVERAGEX(VALUES(Data[period]),[S])
Hhope this helps.
I think something like the below should work for you.
Measure =
AVERAGEX(
SUMMARIZE( 'Table', 'Table'[team ], 'Table'[period ] ),
CALCULATE( SUM( 'Table'[sale] ) )
)
Thanks so much I will give it a try
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
118 | |
82 | |
47 | |
42 | |
33 |
User | Count |
---|---|
186 | |
80 | |
72 | |
48 | |
45 |