Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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 |
---|---|
22 | |
12 | |
10 | |
9 | |
8 |
User | Count |
---|---|
15 | |
15 | |
15 | |
12 | |
10 |