March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello, I have an item dim table with item numbers, invoice table and a date dim table with days, weeks, months etc.. I want to create a calulation that will return the sales of items that have launched in the last 24 months.
So after the item has sales for 24 months I want them to drop out of the filter.
Thanks
Jon
Hi jpt1228,
Based on your description, you want to use present last 24 months sales of each number in Items table, right?
Suppose you have three table:
To achieve your requirement, please refer to steps below:
Sales in last 24 months = CALCULATE (
SUMX ( Invoice, Invoice[Sales] ),
DATESBETWEEN ('Date'[Date], EDATE ( TODAY (), -24 ), TODAY () )
)
The result is like below and you can refer to PBIX file: https://www.dropbox.com/s/ccehjilswvw45o1/For%20jpt1228.pbix?dl=0
Regards,
Jimmy Tao
Hello @v-yuta-msft, Thanks for responding. The data tables are as you illustrated. I am not looking to calculate sales of items for the last 24 months but calculate sales for items that do not have sales for 24 months because they are a newly launched item and the calculate sales for items that are not new and have sales history for longer than 24 months.
Once an item has been selling for 24 months I want the item to show up in the Not New Item category.
The reason is becasue we have different KPI's for new items vs existing items such as quality.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |