This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Good all,
Any idea why this snippit will not work as expected. Note some of the retuened checks are correct and some are not. I double checked all data types and all three are set to date (MM/DD/YYYY).
Regards,
Jason
= Table.AddColumn(#"Renamed Columns", "Hours1", each
let
N = Value.ReplaceType([AdjCreatedDate], type date),
X = Value.ReplaceType([RefDate], type date)
in Table.AddColumn([Runs], "FiltHours", each if N <= Value.ReplaceType([RunDate], type date) and X >= Value.ReplaceType([RunDate], type date) then "True" else "False"))
try rhis change...
Table.AddColumn(#"Renamed Columns", "Hours1", each
let
N = Value.ReplaceType([AdjCreatedDate], type date),
X = Value.ReplaceType([RefDate], type date)
in Table.AddColumn([Runs], "FiltHours", (r)=> if N <= Value.ReplaceType(r[RunDate], type date) and X >= Value.ReplaceType(r[RunDate], type date) then "True" else "False"))
Rocco,
Thank you for the reply. This code is having the same issue where dates outside the range are still being flagged as true.
Jason
Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.