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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bw70316
Helper V
Helper V

Filter Monthly Data to Retrieve New Records in FY w/o Counting same Record Multiple Times?

I have a list of records that I receive monthly. The list includes all the current records from the previous month and each month records are added or deleted. Because of this, I am having trouble filtering data so that I only count a record one time and not the SAME RECORD FOR EACH MONTH. In pic 1 you will notice that the same ID number appears for each given month because I am choosing to highlight one record entry. 

 

With that as a baseline I am trying to highlight the number of Records that are new for a given fiscal year. To be clear, for a FY that begins in July, I am trying to get the  total number of new records in who's original entry is July 2019 + August 2019 + Sept 2019 + Oct 2019 without repeating the same record month in and month out. For example, the child in Pic 1 should be counted ONCE for entering in FY19 and not four different times. Also, I want it to filter for each past FY. How do I write my DAX so that a child is only counted once and also have to so it provides me with the total sum YTD. 

 

I have tried this: 

YTD Calc = CALCULATE(SUM('Totals'[CHILD]), DatesYTD('Totals'[Date of Original Placement],"6/30")) but it does yield the result I desire. Please advise. demo for pbi.png
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @bw70316 ,

Can you please share some sample data with the minimum data structure and expected result for test?  It is hard to coding formula without any detail data.

In addition, you can also take a look at the following blog about use date function to manually define filter range for calculating:

Time Intelligence "The Hard Way" (TITHW)  

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
bw70316
Helper V
Helper V

Below is some sample data. So this is a running list of a record that came in July of 2019. Every month I get a list of about 300 records, most of them are the same, some have been added, others removed. I am trying to create a list of children who have entered care in a particular FY. For example, this individuals entered the list in July  and September of 2019, the first month of the fiscal year. So the number of children in this list who entered in 2019 is two (based on there being only two unique SIS numbers). I am trying to capture the min date only for each of these records and get a running count for the FY. I would also like it to be dynamic so that if you click on July you get 1 record, but if you click on September/October you get 2 records (since one of the individuals entered in September). Please let me know if you need any more information or clarification. Thank you for your assistance. 

 

 

 

SIS Number Date of Original PlacementMonth
200858755719/13/2019September
200858755719/13/2019October
200837696737/18/2019July
200837696737/18/2019August
200837696737/18/2019October
200837696737/18/2019September
Anonymous
Not applicable

HI @bw70316 ,

Can you please share some sample data with the minimum data structure and expected result for test?  It is hard to coding formula without any detail data.

In addition, you can also take a look at the following blog about use date function to manually define filter range for calculating:

Time Intelligence "The Hard Way" (TITHW)  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.