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
so simple. subtract these 2 dates, format of dates is 1/1/2020, Date type
[col1 Date] - [col2 Date] i get a duration as default output. i tried Int64.Type([col1 date] - Int64.Type([col1 date]
i get ERROR
i need todo a conditional, if > 365 etc
= Table.AddColumn(#"Filtered Rows", "New_Existing_Cust", each if Int64.Type([Quarter_Sample_Recvd]) - Int64.Type([Prev Qrt Ordered]) < 365 then "existing" else "new")
how can i just get a plain integer output !!!!!
Solved! Go to Solution.
Since it's a duration, you can use Duration.Days to convert it to an integer.
= Table.AddColumn(
#"Filtered Rows",
"New_Existing_Cust",
each
if Duration.Days([Quarter_Sample_Recvd]) - [Prev Qrt Ordered]) < 365
then "existing"
else "new"
)
Since it's a duration, you can use Duration.Days to convert it to an integer.
= Table.AddColumn(
#"Filtered Rows",
"New_Existing_Cust",
each
if Duration.Days([Quarter_Sample_Recvd]) - [Prev Qrt Ordered]) < 365
then "existing"
else "new"
)
Hi,
Int64.TypeFrom([Quarter_Sample_Recvd])
Stéphane
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 12 | |
| 11 | |
| 11 | |
| 7 | |
| 6 |