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
I have a table with 3 columns Entity, Start_Date and End_Date as follows:
Entity | Start | End |
A | 1/1/2024 | 1/31/2024 |
A | 1/28/2024 | 2/12/2024 |
A | 5/1/2024 | 6/5/2024 |
B | 7/31/2024 | 8/27/2024 |
B | 8/7/2024 | 10/6/2024 |
B | 9/24/2024 | 10/31/2024 |
C | 10/22/2024 | 12/28/2024 |
C | 1/6/2025 | 4/15/2025 |
C | 3/17/2025 | 5/18/2025 |
I am trying to compute the "Average difference" for each entity. The expected result should be (average difference of start and end for each group)
A = 27
B = 41
C = 76
I tried the following DAX code:
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
thank you. this also worked.
Thank you this worked.
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 |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |