March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
I Have a table containing Project Name, Stage , Start and Finish, Days to Complete ,Department
ProjectName | Task | ActualStart | ActualEnd | DaystoComplete | Department |
Test 1 | CMD | 5/16/2019 | 5/16/2019 | 0 | 1-Sol |
Test 1 | CMD | 4/23/2019 | 4/26/2019 | 3 | 1-Sol |
Test 1 | DM | 4/29/2019 | 5/2/2019 | 3 | 2-Por |
Test 1 | DM | 4/26/2019 | 5/1/2019 | 5 | 2-Por |
Test 1 | DM | 5/7/2019 | 5/10/2019 | 3 | 2-Por |
Test 1 | EF | 4/2/2019 | 4/2/2019 | 3 | 3-Test |
Test 1 | FE | 4/2/2019 | 4/2/2019 | 5 | 4-Dep |
How can i get an aggregated sum and then do an average as shown below
ProjectName | Task | ActualStart | ActualEnd | daystoComplete | Department | AggregatedSum | Average |
Test 1 | CMD | 5/16/2019 | 5/16/2019 | 0 | 1-Sol | 3 | 3 |
Test 1 | CMD | 4/23/2019 | 4/26/2019 | 3 | 1-Sol | ||
Test 1 | DM | 4/29/2019 | 5/2/2019 | 3 | 2-Por | 11 | 11 |
Test 1 | DM | 4/26/2019 | 5/1/2019 | 5 | 2-Por | ||
Test 1 | DM | 5/7/2019 | 5/10/2019 | 3 | 2-Por | ||
Test 1 | EF | 4/2/2019 | 4/2/2019 | 3 | 3-Test | 3 | 3 |
Test 1 | FE | 4/2/2019 | 4/2/2019 | 5 | 4-Dep | 3 | 3 |
Solved! Go to Solution.
@kalwabharath44 , Try two measures like
sumx(filter(allselected(Table), Table[ProjectName] = max(Table[ProjectName]) && Table[Task] = max(Table[Task])), [DaystoComplete])
AverageX(summarize(allselected(Table), Table[ProjectName], Table[Task], "_1", sum(Table[DaystoComplete])),[_1])
Hi Amit,
The Measure provided sumx(filter(allselected(Table), Table[ProjectName] = max(Table[ProjectName]) && Table[Task] = max(Table[Task])), [DaystoComplete]) did solve my problem
Thankyou for the Help !!!
Try this:
You can create a calculated summarize table summarized on ProjectName, Task and Department.
I am not sure what is the logic/granularity for your "Average" column. If it is Average of "Sum" then it should be at a higher granular level.
@kalwabharath44 , Try two measures like
sumx(filter(allselected(Table), Table[ProjectName] = max(Table[ProjectName]) && Table[Task] = max(Table[Task])), [DaystoComplete])
AverageX(summarize(allselected(Table), Table[ProjectName], Table[Task], "_1", sum(Table[DaystoComplete])),[_1])
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
15 | |
7 | |
6 |
User | Count |
---|---|
33 | |
29 | |
16 | |
13 | |
12 |