Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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 February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
13 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
13 | |
12 |