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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tep12w
Regular Visitor

Show only new items

I'm trying to create a measure that shows items that have been sold this month but not in any previous months. So newly sold items only that have never appeared in previous months data. Is there a easy way to do this? Thanks

4 REPLIES 4
ERD
Community Champion
Community Champion

Hi @tep12w ,

If you need a measure, you can use the next one:

 

CheckNewItems =
VAR currD =
    MAX ( T[Date] )
RETURN
    IF ( CALCULATE ( COUNT ( T[Item Sold] ), T[Date] <= currD ) = 1, 1)

 

Then you can use it to filter the visual

ERD_0-1624352110386.png

ERD_1-1624352119868.png

Or, supposing you have a proper Calendar table connected with your Data table. Then you can use the next measure:

CheckNewItems_2 =
VAR currItem = MAX ( T[Item Sold] )
VAR firstMonthSold =
    CALCULATE (
        MIN ( 'Calendar'[Month num] ),
        FILTER ( ALL ( T ), T[Item Sold] = currItem )
    )
RETURN
    IF ( MAX ( 'Calendar'[Month num] ) = firstMonthSold, 1 )

ERD_0-1624355926744.png

 

If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

Hello @tep12w 
You can try a calculated column. Please note the date is a must for this calculation and I'm assuming you have dates for items sold.

Result =
VAR FirstMonth =
CALCULATE (
MIN ( 'New Items'[Date] ),
FILTER (
ALL ( 'New Items' ),
'New Items'[Item Sold] = EARLIER ( 'New Items'[Item Sold] )
)
)
RETURN
IF ( 'New Items'[Date] = FirstMonth, 'New Items'[Item Sold] )
Anonymous
Not applicable

Hello @tep12w 
You can apply the condition where the date is in this current month.
If you need more help please share your data in table format with the expected output after removing sensitive data.


Thanks. I have included a simplified table below. I want to be able to select the month of June and have the chart only show 'Draws' because 'Chair' and 'Lamp' had already been seen before, in May. For the month of June the item 'Draws' has never been seen before. That's all I want to see in the graph. Hope that makes sense?

DateItem Sold
MayChair
MayLamp
MayBulb
JuneChair
JuneLamp
JuneDraws

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.