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
I'm trying to summarize a table to display values by month
Solved! Go to Solution.
Don't use SUMMARIZE to add calculated columns, use ADDCOLUMNS instead
ADDCOLUMNS (
SUMMARIZE (
Sales_View,
Sales_View[Div],
Sales_View[Code],
Sales_View[Brands],
Sales_View[Billing Month_Year],
Sales_View[Type]
),
"Value", CALCULATE( SUM ( Sales_View[VALUE] ) )
)
If you're interested, there's a SQL BI article about it.
It still provides wrong results
My mistake. I have edited my original post to include the required CALCULATE around the SUM.
Don't use SUMMARIZE to add calculated columns, use ADDCOLUMNS instead
ADDCOLUMNS (
SUMMARIZE (
Sales_View,
Sales_View[Div],
Sales_View[Code],
Sales_View[Brands],
Sales_View[Billing Month_Year],
Sales_View[Type]
),
"Value", CALCULATE( SUM ( Sales_View[VALUE] ) )
)
If you're interested, there's a SQL BI article about it.
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 August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
16 | |
13 |
User | Count |
---|---|
39 | |
38 | |
23 | |
21 | |
19 |