Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hi guys,
I'm having little trouble writing an IF statement.
Here is the logic DateReceived minus Inv Date being greater or less than 50.
This is the the function I wrote but is invalid.
Column = IF (AND(('Table1 '[DateReceived]) - [InvDate] < 51 ), "<50 Days","50+ Days ")
Can someone please help?
Solved! Go to Solution.
Hi @Stuznet
Use this.
Column = IF ( Table1[DateReceived] - Table1[InvDate] < 51 , "<50 Days","50+ Days ")
Thanks
Raj
The formula you have is invalide because you are using AND condition and only condition1 is listed. Here is how I fix it:
Column = IF ( DATEDIFF(
[InvDate], [DateReceived], Day) <50
,"<50 Days"
,"50+ Days ")
Hi @Stuznet
Use this.
Column = IF ( Table1[DateReceived] - Table1[InvDate] < 51 , "<50 Days","50+ Days ")
Thanks
Raj
@Anonymousperfect as always. 🙂
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 42 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 111 | |
| 104 | |
| 35 | |
| 28 | |
| 27 |