Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
| Item No | sales 6 month | Last purchased date |
| 1 | 0 (missing due to last purchased date filter?) | 30.07.2021 |
| 2 | 0 (missing due to last purchased date filter?) | 30.07.2021 |
| 3 | 0 (missing due to last purchased date filter?) | 30.07.2021 |
| 4 | 7.600 | 01.08.2021 |
| 5 | 10.200 | 01.08.2021 |
Hi @MIkkelHyldig ,
I could not fully understand, are you expecting to see sales for the last 6 months?
And how do you want to handle the data before 6 months?
Is your calendar table associated with the [Last purchased date] column?
Best Regards,
Winniz
Hi @v-kkf-msft ,
I could not fully understand, are you expecting to see sales for the last 6 months? Yes. Eg. if I purchased an item 1 year ago there can/will still be sales within the last 6 month
And how do you want to handle the data before 6 months? Lets see if I can explain it. I want the two measures (last purchaed date and sales 6 month) to ignore each other for the items so that item 1 still have sales for the last 6 months evne though the last purchased date is more than 6 month ago
Is your calendar table associated with the [Last purchased date] column? No not directly. Calender is key to posting data in Value Entries table, which is related by Item key to Value Entries, where last purchased date is.
My data model:
Table 1: Value Entries
Posting data
Item (key to table 2)
Quantity
Table 2: Value Entries New
Item (key to table 1)
Last Purchased date
Table 3: Calender
Date (key to posting date)
Hi @MIkkelHyldig ,
Since your [Last purchased date] column is not associated with the Calendar table, the [Last purchased date] will not affect the final result. I create the following example data and relationship.
Then using your formula, it returns the correct value. So please check if you have any missing data or any relationship that makes the Calendar table indirectly filter the [Last purchased date].
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@MIkkelHyldig , Check one of the two
Sales 6 month = CALCULATE (SUM ( 'Value Entry'[Invoiced Quantity] ),filter('Value Entry','Value Entry'[Item Ledger Entry Type] = 0),
DATESINPERIOD('Calender'[Date],TODAY(),-6,MONTH))
or
Sales 6 month = CALCULATE (SUM ( 'Value Entry'[Invoiced Quantity] ),filter('Value Entry','Value Entry'[Item Ledger Entry Type] = 0),
filter(,ALL(Calender[Date]), 'Calender'[Date] >= Eomonth(TODAY(),-6) && 'Calender'[Date] <= Eomonth(TODAY(),0)))
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |