Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
We have data - example below - where we'd like to calculate the Average based on the SUM of given grouped values.
For example - using data below - for Burger King marketing - we have 3 values: 120, 220 and 85. The average of these is 141.66. This is not the answer we want. Want to group by Project (Company Name, Group A and Group B) and SUM AMOUNT. Also want to have filter work on date. column. So, answer should be 212.5 (120+220=340 and 85) - take average of those.
Tried creating a table which calculates this dynamically but it doesn't update when the date filter changes. Any help appreciated.
Thanks,
Dan
SUMMARIZE(FILTER(TestData, TestData[Amount]>= [EarliestDate] && TestData[Amount]<= [LatestDate]),
TestData[CompanyName],
TestData[GroupA],
TestData[GroupB],
TestData[Project],
"Total Amount Billed", SUM(TestData[Amount]))
This measure gets the 212.5 result and can filter by date.
Thanks @PaulOlding! Appreciate your help with this. That worked for everything except for the total - that it is not displaying the average of everything being calcualted. Thoughts on how to make that work?
Thanks,
Dan
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
19 | |
18 |