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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Applying filters for unique ID's per month, using only the latest instance of an ID

I have a set of data with serveral unique ID's, that may appear several times in the dataset. We want to see how many unique ID instances exist every month, which is done by this formula

 

Total Per Month=COUNTROWS(SUMMARIZE('Table1', 'Date Table'[Date Month],'Table1'[ID]))

 

These ID's have possilbe tags of Red, Green, and Blue. We want to be able to see how many total every month for each respective color tag. The thought process behind this was through this measure

 

Total Green=CALCULATE([Total Per Month],'Table1'[Color]="Green")

 

However, within an indiviual month, the color of the ID's can change which will create a duplicate, thus it will miscount the total of that color for months where the color changes. I want to be able to have it only count the color of the most recent date, which is indicated by a column called "Last Updated", which shows the most recent date iteration of the ID and it's respective color

 

Any help would be greatly appreciated! 

2 REPLIES 2
Anonymous
Not applicable

Hi, @Anonymous 

 

May I ask if you have solved your problem, you can try to use some_bih's approach, if not, you can either share the pbix file without sensitive data or post a full reproduction of the problem including information about the data table, measurements, expected effect and the logic to achieve the effect.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

some_bih
Super User
Super User

Hi @Anonymous it is not totally clear to me what is your request.

Usually, it it good practice to see how some fact is changed using Calendar / Date table.

On link you can see how much different product key (products) with different colors are sold per year month

I hope this help in your situation as idea, otherwise share your model with simple example and expected output

 

some_bih_0-1706214508952.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.