Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi folks,
I have an dax code which is running will in dax editor, the same thing I want to run on my PBI but throwing error
"Calculation error in measure 'Sales[Max GA%]: SummarizeColumns() and AddMissingItems() may not be used in this context"
Dax Editor :
DEFINE
VAR FinalTable =
SUMMARIZECOLUMNS(Sales[YearQtr], Sales[BrandCode Group],
FILTER(KEEPFILTERS(VALUES('Sales'[BrandCode Group])), 'Sales'[BrandCode Group] <> "PCSD"),
"GA_Mix_", 'Sales'[GA Mix%]) ---- Using Measure pre calculated Mix%
VAR TopBrandValue =
TOPN(1, FinalTable, [GA_Mix_], 0)
VAR Result =
SUMMARIZECOLUMNS(
Sales[BrandCode Group], Sales[YearQtr],
TopBrandValue,
"GA_Mix_", 'Sales'[GA Mix%]
)
EVALUATE
GROUPBY(Result, "MinGA_Mix_", MINX(CURRENTGROUP(), [GA_Mix_]))
I want to same dax on PBI.
@Fsciencetech , Try if you can do same with Addcolumns(Summarize in place of summarize columns
Refer for example
Solved: Issue with Bar chart: SummarizeColumns() and AddMi... - Microsoft Power BI Community
also refer
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 48 | |
| 38 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 76 | |
| 37 | |
| 27 | |
| 25 |