Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
=IF([This Week''s Contacts]="","",IF(COUNTIFS($G:$G,[Cust No],$T:$T,"<"&[Start Date],$T:$T,">="&EOMONTH([Start Date],-12)+1)>=1,"Y",""))
Column G = Cust number
Column T = Start date
Hello,
I want to replicate the above Excel formulae within a a DAX calculated column within my Power BI model can anyone please help?
@amitchandak essentially what I need to do is mark Y if the customer has previously been contacted in the last 12 months.
Hello @amitchandak
This is an example of what the data would look like and I want to replicate the column Contact in 12 months -
So the forumlae in excel I need to replicate in a DAX calculated column is =IF(A2="","",IF(COUNTIFS($B$2:$B$12,B2,$C$2:$C$12,"<"&C2,$C$2:$C$12,">="&EOMONTH(C2,-12)+1)>=1,"Y",""))
The columns are A-D in this version
| This Weeks Contacts | Client No | Start Date | Contact 12 Months |
| Y | 1234 | 15/10/2020 | Y |
| Y | 1233 | 15/10/2020 | Y |
| 1111 | 12/10/2020 | ||
| Y | 1888 | 15/10/2020 | Y |
| Y | 8952 | 12/10/2020 | |
| Y | 2535 | 11/10/2020 | |
| Y | 1234 | 10/09/2020 | |
| Y | 1233 | 08/08/2020 | |
| Y | 1111 | 07/08/2020 | |
| Y | 1888 | 06/06/2020 | |
| Y | 9255 | 01/06/2019 |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 63 | |
| 32 | |
| 31 | |
| 23 |