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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.