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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello
Please help me out here
I'm creating a calculated column with the Customer First Sales Date and in the case where that same customer has a different salesperson it should pick up the 1st sales date ever and not just the 1st sales date for that salesperson. In this case Tom made the 1st sale on 8/4/2008 and that should be Jerry's First Sales Date too. I tried this formula but it doesn't work
VAR
FirstSalesDateKey =
CALCULATE(
MIN('Sales'[sales_date_key])
,ALLSELECTED('Sales'[customer_key])
,ALLEXCEPT('Salesperson','Salesperson'[Salesperson ID])
)
RETURN
IF(
FirstSalesDateKey = BLANK()
,-1
,FirstSalesDateKey
)
Solved! Go to Solution.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
I tried to create a sample pbix file based on your explanation.
All measures are in the sample pbix file.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
I tried to create a sample pbix file based on your explanation.
All measures are in the sample pbix file.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Thank you @Jihwan_Kim it worked!!
@Anonymous The problem is your ALLEXCEPT, this is preserving the Sales Person filter. Try replacing ALLEXCEPT with ALL
@Greg_Deckler thanks for helping out. I I replaced the ALLEXCEPT with ALL but it didn't work