Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Khanh1
New Member

Double Filter error

Im having trouble to apply my double filter year and month, so far only single year works!

 

The code is down below

"

Turnover - TopN:=
SUMX(
TOPN([SelectedTopNNumber],
SUMMARIZECOLUMNS(Customer[Customer Name],'Date'[Month],
"Sales TopN", CALCULATE([Amount],KEEPFILTERS(FILTER(ALL(Account[AccountTurnover]),Account[AccountTurnover]=1)))),
[Sales TopN]),
[Sales TopN])

"

 

The error is below:

MdxScript(xx)

Calculation error in measure 'KeyFigures' [xxx]: SummarizeColumns() and AddMissingItems() may not be used in this context

 

Technical Details:
RootActivityId: 30b20aca-4ffa-4508-a595-fd5ce38341f7

1 REPLY 1
Anonymous
Not applicable

Hi @Khanh1,

 

I'm no so clear for your data structure, please share a pbix file with some sample data for test.

How to Get Your Question Answered Quickly

 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.