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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 150 | |
| 126 | |
| 109 | |
| 79 | |
| 54 |