A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
You get the same result, because in query 2 + 3 you added only a dimension attribute, but not value to filter on, like = "Blue"
calculate ( sum (sales[TotalAmount],Product[color] = "Blue")
See https://learn.microsoft.com/en-us/dax/calculate-function-dax => Examples.