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
Matej
Helper I
Helper I

return a list of items that have not been sold in 3/6/9 months

Hello, I'm trying to return only a list of items that have not been sold in the last 3/6/9 months. I also have a calendar table created and connected but I'm not very versed in time inteligence in PBI so I'm unsure how to formulate the right measure. 

 

exp.png

1 ACCEPTED SOLUTION
MohTawfik
Resolver I
Resolver I

Check this one
creating months period parameter as follows

MohTawfik_1-1683112721056.png

Then creating measure

Not Sold Items = 

Var Last_Sold_Date=
Max('Table'[Last item Fulfillment Date])

Var Period_END_Date=
DATE(
    year(now()),
    month(now())-'Last Months period'[Last Months period Value],
    DAY(now()
    )
)

Var Result =
If (
    Last_Sold_Date > Period_END_Date,
    "Sold",
    "Not Sold"
)

Return 
Result



 


on matrix visual, you can filter by "not sold"

MohTawfik_0-1683112550226.png


hope this solves your issue

View solution in original post

2 REPLIES 2
MohTawfik
Resolver I
Resolver I

Check this one
creating months period parameter as follows

MohTawfik_1-1683112721056.png

Then creating measure

Not Sold Items = 

Var Last_Sold_Date=
Max('Table'[Last item Fulfillment Date])

Var Period_END_Date=
DATE(
    year(now()),
    month(now())-'Last Months period'[Last Months period Value],
    DAY(now()
    )
)

Var Result =
If (
    Last_Sold_Date > Period_END_Date,
    "Sold",
    "Not Sold"
)

Return 
Result



 


on matrix visual, you can filter by "not sold"

MohTawfik_0-1683112550226.png


hope this solves your issue

This is great! Thanks a lot for the help, really appreciate it. 

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.

Top Kudoed Authors