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.
Hi All,
I would like to compile a similar table to PowerBI but I need to calculate the totals using DAX. I'm running to an issue especially with the row level context and the total Avg amounts for both Products A & B as I use SUMPRODUCT(Product A:AVG Amount ProductA)/SUM(Product A) = $22.67
Expected result Total AVG amount per month (Jan) = ((80*22)+(64*20))/144 = $21.11
Entire year Avg amount =( (3282*19.90)+(2798*19.90))/ (3282+2798)
Product A | Product B | Avg Amount- Prod A | Avg Amount- Prod B | Avg Amount -All Products | |
Jan | 80 | 64 | 22 | 20 | 21.11 |
Feb | 41 | 211 | 22 | 17 | 17.81 |
Mar | 58 | 200 | 22 | 22 | 22.00 |
Apr | 879 | 233 | 22 | 22 | 22.00 |
May | 88 | 400 | 23 | 23 | 23.00 |
Jun | 89 | 74 | 23 | 15 | 19.37 |
Jul | 547 | 146 | 23 | 19 | 22.16 |
Aug | 742 | 874 | 23 | 20 | 21.38 |
Sep | 214 | 20 | 23 | 17 | 22.49 |
Oct | 200 | 222 | 23 | 14 | 18.27 |
Nov | 100 | 100 | 23 | 22 | 22.50 |
Dec | 244 | 254 | 23 | 20 | 21.47 |
Total | 3282 | 2798 | 22.68 | 19.90 | 21.40 |
Please help create a measure
Solved! Go to Solution.
see attached. Note that your source data structure is not sustainable.
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 |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |