Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
70 | |
67 | |
43 | |
41 |
User | Count |
---|---|
48 | |
42 | |
29 | |
28 | |
27 |