Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I've tried below 2 Dax, purpose is to return the value "FU Appeal" if Date A is later than Date B. but below 2 both not working.
IsFUAppeal = if(and('DA - One Off 2016'[Response Campaign]="2016 Syria Winterisation Appeal",'DA - One Off 2016'[Donation Received Date]>='DA - One Off 2016'[FU 2016 Syria Winterisation Appeal]),"FU Appeal","1st Appeal")
IsFUAppeal = if(and('DA - One Off 2016'[Response Campaign]="2016 Syria Winterisation Appeal",'DA - One Off 2016'[Donation Received Date]>=05/12/2016),"FU Appeal","1st Appeal")
Hi @Anonymous,
I test your first formula and it works as expected, please check the following screenshot.
Regarding to your second formula, please change it to the following formula and check if you get desired result, there is also an example for your reference.
IsFUAppeal1 = if(and('DA - One Off 2016'[Response Campaign]="2016 Syria Winterisation Appeal",'DA - One Off 2016'[Donation Received Date]>= Date(2016,5,12)),"FU Appeal","1st Appeal")
For more details about the above example, you can review this attached PBIX file.
If you still have problems when comparing dates, please help to share sample data of your table and post expected result here , also we need to know which data type you store the date values as.
Thanks,
Lydia Zhang
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
88 | |
83 | |
64 | |
49 |
User | Count |
---|---|
127 | |
108 | |
88 | |
70 | |
66 |