Formula to show customers who have previously bought products, but haven’t bought any in the last 3 months

Kats107

New Member
Joined
Apr 7, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I'm trying to work out a formula in Power BI to show customers who have previously bought products, but haven’t bought any in the last 3 months. I can't get it quite right. Any ideas please?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Have you tried adding a column using the Data Model? Make sure your table/source has been added to the data model. On the Power Pivot tab, click MANAGE in the Data Model group. Assume the last purchase date is in a column named LastPurch, select a blank cell under Add Column and enter this:

=if(now()-Table1[LastPurch]<=90,"Yes","No")

This method returned the correct value of Yes for purchase within the last 90 days.
 
Upvote 0
Have you tried adding a column using the Data Model? Make sure your table/source has been added to the data model. On the Power Pivot tab, click MANAGE in the Data Model group. Assume the last purchase date is in a column named LastPurch, select a blank cell under Add Column and enter this:

=if(now()-Table1[LastPurch]<=90,"Yes","No")

This method returned the correct value of Yes for purchase within the last 90 days.
Hi, thanks for your reply. I'm trying to do this in Power BI so there isn't a Power Pivot tab?
 
Upvote 0

Forum statistics

Threads
1,223,721
Messages
6,174,091
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top