Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables:
Table 1
Name | |
John Doe | John.doe@email.com |
John Doe | John.doe@email.com |
Larry Fitz | Larry.Fitz@email.com |
John Elway | John.elway@email.com |
John Elway | John.elway@email.com |
John Elway | John.elway@email.com |
Table 2
Name | Date Submitted | |
John Elway | John.elway@email.com | 1/1/2023 |
Joe Burrow | Joe.burrow@email.com | 5/1/2022 |
Larry Fitz | Larry.Fitz@email.com | 12/1/2022 |
Brian Urlacher | brian.urlacher@email.com | 9/1/2022 |
I want to create a new column using DAX on Table 1 called "Eligibility" where:
IF the inidivudla has a submission on Table 2 from the past 3 months, it says "Yes", other wise "No".
Intended Result would be:
Name | Eligibility | |
John Doe | John.doe@email.com | No |
John Doe | John.doe@email.com | No |
Larry Fitz | Larry.Fitz@email.com | Yes |
John Elway | John.elway@email.com | Yes |
John Elway | John.elway@email.com | Yes |
John Elway | John.elway@email.com | Yes |
Thank you in advance!
Solved! Go to Solution.
Hi @botaac ,
Please try to create a new column with below dax formula:
Eligibility =
VAR cur_date =
TODAY ()
VAR _date =
LOOKUPVALUE ( Table2[Date Submitted], Table2[Name], Table1[Name] )
VAR _val =
DATEDIFF ( cur_date, _date, MONTH )
RETURN
IF ( ISBLANK ( _date ), "No", IF ( _val > 3, "No", "Yes" ) )
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @botaac ,
Please try to create a new column with below dax formula:
Eligibility =
VAR cur_date =
TODAY ()
VAR _date =
LOOKUPVALUE ( Table2[Date Submitted], Table2[Name], Table1[Name] )
VAR _val =
DATEDIFF ( cur_date, _date, MONTH )
RETURN
IF ( ISBLANK ( _date ), "No", IF ( _val > 3, "No", "Yes" ) )
Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @botaac
try like:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
21 | |
15 | |
14 | |
11 | |
7 |
User | Count |
---|---|
26 | |
23 | |
12 | |
11 | |
10 |