Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
19 | |
12 | |
11 | |
10 | |
6 |
User | Count |
---|---|
21 | |
20 | |
19 | |
14 | |
10 |