Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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