Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
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
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 )
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!
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.
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?
Date | Item Sold |
May | Chair |
May | Lamp |
May | Bulb |
June | Chair |
June | Lamp |
June | Draws |
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |