We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 34 | |
| 18 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 62 | |
| 38 | |
| 34 | |
| 22 |