The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
The first argument to SUMMARIZE is a table. The amount is irrelevant (assuming the presence of a record in the fact table indicates a sale took place).
The Amount is showing as red error also.
I'm wondering is there a workaround code or something to fix this?
All the tables in my data model have correct relationships also.
Yes some kind of fact table is needed to identify whether a customer purchased the item in the time range (otherwise you don't have the information). Normally this would be some kind of sales table with keys to the customer dimension, date dimension and item dimension.
When I input the table that has the sales figure I get a red error.
What's the best way to fix this?
Apologies I'm new to Power BI so unsure of some things.
Try this:
Thanks for the response.
I haven't got a Sales table in my data. I have a table called 'Module Sales with Inventory' that has an amount field.
Do I need to put something else instead of sales?
I have included below sample data and the expected outcome also below here if that would help:
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
141 | |
109 | |
107 | |
75 | |
61 |
User | Count |
---|---|
276 | |
129 | |
122 | |
100 | |
88 |