🔥 3-day streak
Microsoft Fabric Analytics Engineer Associate138 / 150
Question 138 of 150

You are building a reporting view in a Fabric warehouse. The source table Sales has columns OrderId, ProductCategory (values 'Electronics', 'Clothing', 'Toys'), and Amount. You need a single result row per unused grouping that returns one column per category with the total Amount for that category, so the report can display categories side by side. You want to do this in a single T-SQL query without a dataflow. Which approach should you use?

Reviewed for accuracy · Report an issueNext question