The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Experts
I cannot see where the error is in the following M Script as a custom column in Power Query
#"Add Custom" = Table.AddColumn(Source, "Status", each
if [#"Dataset"] = "" and Date.Month([Date]) = 4 then "A" else [#"Dataset"]
Hi, @Invesco
Thanks for nilendraFabric's reply. It doesn't look like there's anything wrong with your code, you can try his suggestion and if it still doesn't work, you can share the pbix file with no sensitive data for testing.
Best Regards,
Yang
Community Support Team
HI @Invesco
Give this a try
#"Add Custom" = Table.AddColumn(Source, "Status", each
if [Dataset] = "" and Date.Month([Date]) = 4 then "A" else [Dataset])
Still updating file. is a big PBIX