This is MAQL question more than anything. I’m trying to create a metric that can compare the material cost of a product, to the average material cost of all the products in that category. So I have a table and the row would be product name, % material cost, then average material cost of all other products in that category.
Is anyone able to point me in the direction of creating the theirs column metric?
If you get the metric built, but still don’t see your desired results, please let us know and describe what exactly is missing from the insight/report and we can assist further.
j
Jakub Sterba
09/22/2023, 6:05 AM
Let me suggest:
Copy code
SELECT Cost / (SELECT AVG(SELECT Cost BY Product) BY Category, ALL OTHER)