- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calculate average between double counting rows
Requested Year | Customer Name | Project | Processor Number | Ecap Price ($) | Ceiling Volume | WeightedEcap |
2019 | Beta | A1 | XXX1 | $770 | 204,000 | 157080000 |
2019 | Theta | A1 | XXX1 | $770 | 200,000 | 154000000 |
2019 | Alpha | B1 | CCC2 | $1,650 | 102,000 | 168300000 |
2020 | Alpha2 | C1 | BBB2 | $1,550 | 50 | 77500 |
I have data in the above format and there is many more rows, what iam trying to do is essentially do a weighted average.
Where i made a measure that does
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Anonymous ,
You can create a calculated column as below to get it, please find the details in the attachment.
WeightedEcap =
VAR _avgcvol =
CALCULATE (
AVERAGE ( Table1[Ceiling Volume] ),
FILTER (
'Table1',
'Table1'[Requested Year] = EARLIER ( Table1[Requested Year] )
&& 'Table1'[Project] = EARLIER ( 'Table1'[Project] )
&& 'Table1'[Processor Number] = EARLIER ( 'Table1'[Processor Number] )
)
)
RETURN
_avgcvol * 'Table1'[Ecap Price ($)]
If the above one is not your expected result, please provide more raw data in your table with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Anonymous ,
You can create a calculated column as below to get it, please find the details in the attachment.
WeightedEcap =
VAR _avgcvol =
CALCULATE (
AVERAGE ( Table1[Ceiling Volume] ),
FILTER (
'Table1',
'Table1'[Requested Year] = EARLIER ( Table1[Requested Year] )
&& 'Table1'[Project] = EARLIER ( 'Table1'[Project] )
&& 'Table1'[Processor Number] = EARLIER ( 'Table1'[Processor Number] )
)
)
RETURN
_avgcvol * 'Table1'[Ecap Price ($)]
If the above one is not your expected result, please provide more raw data in your table with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
07-05-2024 07:58 AM | |||
08-27-2024 06:13 AM | |||
09-10-2024 06:07 AM | |||
06-29-2024 06:36 AM | |||
10-07-2024 10:50 AM |
User | Count |
---|---|
12 | |
11 | |
10 | |
9 | |
9 |
User | Count |
---|---|
29 | |
16 | |
14 | |
13 | |
13 |