Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
bw70316
Helper V
Helper V

Dynamically show Average of Cumulative Data Based on Unique/Initial Dates

In my first photo I demonstrate the filters I have in the majority of my project. As you can see, it is culminating the entire average age for the entirety of the data. My goal is to display the data from the second picture, the average age of children INITIALLY entering the system. However, I want my Date of Original Placement to appear Dynamically for each month and to only count the datapoints currently seen in the filter, which are the initial dates of placement. My data is also cummulative with, for example the dates for FY19 March, appearing again in April FY19, May FY19, etc. due to the way the data is collected. My relationship between my tables is with another date in my table.FC1.pngFC2.png

4 REPLIES 4
bw70316
Helper V
Helper V

Here is an example of my data, unfortunately I could not include the age itself. I have a filter on the Month of September. As you can see, it is giving me the average age of all children who are in care in September. What I am trying to achieve, is the average age of the dates of those INITIALLY entering the program (the dates highlighted in the second picture). I also want it dynamically, so that when I choose ANY month I receive the average age of the children who just entered the program. FC3.pngFC4.png

Here is a snippet of the data. Imagine there are children who have come through the system and entered in past years. This is the list of children who are in the system in September. The filtered list at the bottom is the date 4 NEW CHILDREN entered the system. The Month works as a separator for the data so that I know this list of children is September's list, IT DOES NOT MEAN THE CHILDREN ENTERED INTO THE SYSTEM THIS MONTH NECESSARILY, ONLY THE FOUR AT THE BOTTOM DID. I WANT TO CAPTURE THE AVERAGE OF THOSE AGES FOR EVERY CHILD WHO ENTERS THE SYSTEM IN A GIVEN MONTH:

 

AGEDate of Original PlacementMonth
38/31/2017September
68/31/2017September
99/26/2017September
812/8/2015September
612/8/2016September
184/10/2018September
173/4/2016September
17/18/2018September
179/21/2018September
28/23/2018September
17/11/2018September
89/21/2018September
47/13/2018September
58/8/2018September
158/8/2018September
188/9/2018September
610/1/2018September
910/1/2018September
17/5/2018September
38/27/2018September
192/25/2018September
195/11/2018September
191/7/2018September
205/1/2018September
188/7/2018September
1911/26/2017September
05/1/2018September
212/27/2017September
198/1/2018September
214/6/2017September
187/8/2018September
193/1/2018September
187/3/2018September
187/3/2018September
188/1/2018September
188/30/2018September
212/21/2017September
1910/10/2017September
195/25/2018September
Avg: 13  

 

Here is the data of original placement filtered so that the dates of original placement that occurred in Septmeber are shown only (I realize some dates bleed into October, that is by design). I want the dates of original placement to be filtered in such a way that they spit out THAT MONTH's average age:


AGEDate of Original PlacementMonth
179/21/2018September
89/21/2018September
610/1/2018September
910/1/2018September
Avg: 10  

@bw70316 I'm not sure how to interpret this screen shot, you need to send data in excel and expected result. if you can share pbix with sample data that is even better. Remove any sensitive information before sharing.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@bw70316 can you share sample data and expected result. Your post is not very clear. 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.