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
Hi All
I like to filter those customer first buy date from 1 Jan 2020 . i have try :-
My PBI file :-
Paul
Solved! Go to Solution.
Hi, @admin11
According to your description and sample picture, it seems that the [date_first_buy] is a measure, you can’t create a calculated column to quoting other measures, so you can only achieve this using measure, you can try this measure:
Flag =
IF([date_first_buy]>=DATE(2021,1,1),1,0)
Then apply the filter of this table chart like this, because measure can’t be placed into the slicer, you can only use filter to achieve this:
And you can get what you want, your pbix file is too large for me to open, so I just created some test data to do some test.
You can download my test pbix file here
If this result is not what you want, you can post your pbix file with some test data(without sensitive data) so that I can open it and test it in your pbix file.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @admin11
According to your description and sample picture, it seems that the [date_first_buy] is a measure, you can’t create a calculated column to quoting other measures, so you can only achieve this using measure, you can try this measure:
Flag =
IF([date_first_buy]>=DATE(2021,1,1),1,0)
Then apply the filter of this table chart like this, because measure can’t be placed into the slicer, you can only use filter to achieve this:
And you can get what you want, your pbix file is too large for me to open, so I just created some test data to do some test.
You can download my test pbix file here
If this result is not what you want, you can post your pbix file with some test data(without sensitive data) so that I can open it and test it in your pbix file.
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @admin11
I am not sure if I understood correctly, but please try the below.
Jihwan Kim
If this post helps, then please consider accept it as the solution to help the other members find it more quickly.
Thank you for sharing , i try to apply the syntax , it got error below . i am unable to clear error . hope you can advise me.
Sorry, I did not copy-paste my measure from pbix to here correctly
please try below.
First_Day_Buy =
I try your code , still cannot work. Actually i need to create column , apply at Slicer , to filter those new customer start buy since 1 jan 2020.
Paul
Try this:
SHOW_NEW_ACC_15_MTH_AGO = IF ('Date'[DATE_FIRST_BUY] >= DATE(2020,01,01), 1, 0)
Thank you very much for both of sharing. unfortunately both syntax not able retrun 1 and 0 , it return 0 and 0.
May be due to my date with time stamp , include the hr min sec . that why it cannot work ? see below image.
@admin11
Try a calculated column for Date_First_Buy, then try a new column with IF ('Date'[DATE_FIRST_BUY] >= date(2020,1,1), 1, 0)
When i try to create column for Date_First_Buy , My table data become messy. So i cannot go further next step. as not easy for me figure out which are those new customer ?
@admin11 Maybe this will help:
Date_First_Buy_ = Calculate(Min(Sales[Date]),Allexcept(Customertable,Customertable[Customer Name])
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 |
|---|---|
| 103 | |
| 80 | |
| 63 | |
| 50 | |
| 45 |