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

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.