The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All,
I'm trying to learn how I can create a custom column, let's use
=Date.EndOfMonth(Date.AddMonths(DateTime.Date(DateTime.LocalNow()),-1))
and within the same custom column formula make the data type date.
I'm trying to forgo adding the extra subsequent step of changing the data type.
Is this possible?
Solved! Go to Solution.
Hi,
Does this work?
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Date.EndOfMonth(Date.AddMonths(DateTime.Date(DateTime.LocalNow()),-1)), type date)
Hi,
Does this work?
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Date.EndOfMonth(Date.AddMonths(DateTime.Date(DateTime.LocalNow()),-1)), type date)
Yes it does. Thank you!
You are welcome.