Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone
I am creating a conditional column, where if the value of a column has a certain value (texttype), then bring the date I indicate, but it does not load the output type date and the error comes out #date
Hi @Syndicate_Admin @manuelacardonan
Your logic looks correct. Is the issue that the new column isn't set as date type?
You can just add a Change Type step, but if you wan to do it when the new column is created, you'll need to manually edit the M code.
You need to add another argument to end of the Table.AddColumn function type date
= Table.AddColumn(#"Changed Type1", "Custom", each if [AnoColPaquete] = "202391" then #date(2023,3,6) else null, type date)
Regards
Phil
Proud to be a Super User!
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |