Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have the excel formula working but I need help with the dax version of it,
=IF(F2="",A2,IF(AND((D2-F2)>2,E2="Cancelled"),0,A2))
Sample Data below:
A B C D E F G
fee | Date | Enddate | Startdate | Status | Updated | ExpectedOutput |
£10 | 17/09/2020 16:00 | 15/09/2020 00:00 | 15/09/2020 | Attended | 06/04/2020 | £10.00 |
£10 | 17/09/2020 16:00 | 16/09/2020 18:00 | 16/09/2020 | Cancelled | 06/04/2020 | £0.00 |
£10 | 17/09/2020 16:00 | 29/06/2020 18:00 | 29/06/2020 | Cancelled | 28/06/2020 | £10.00 |
£10 | 17/09/2020 16:00 | 17/09/2020 16:00 | 17/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 30/06/2020 16:00 | 30/06/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 15/09/2020 00:00 | 15/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 16/09/2020 18:00 | 16/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 29/06/2020 18:00 | 29/06/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 17/09/2020 16:00 | 17/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 30/06/2020 16:00 | 30/06/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 15/09/2020 00:00 | 15/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 16/09/2020 18:00 | 16/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 29/06/2020 18:00 | 29/06/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 17/09/2020 16:00 | 17/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 30/06/2020 16:00 | 30/06/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 15/09/2020 00:00 | 15/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 16/09/2020 18:00 | 16/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 29/06/2020 18:00 | 29/06/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 17/09/2020 16:00 | 17/09/2020 | Pending | £10.00 | |
£10 | 17/09/2020 16:00 | 30/06/2020 16:00 | 30/06/2020 | Pending | £10.00 | |
Solved! Go to Solution.
Hi @moeconsult
try
Column =
IF(ISBLANK([Updated]), [fee],
IF([Status]="Cancelled" && ([Startdate] - [Updated]) > 2, 0, [fee])
)
Hi @moeconsult ,
Try this custom column:
Hi @moeconsult ,
Try this custom column:
Hi @moeconsult
try
Column =
IF(ISBLANK([Updated]), [fee],
IF([Status]="Cancelled" && ([Startdate] - [Updated]) > 2, 0, [fee])
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |