cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wvadik
Helper III
Helper III

Return table with ignoring some filters in DAX

I have table

 

 

Table1(Field1, Field2, Field3, Field4, Field5)

 

 

and in SUMMARIZE function I need put Table1 with columns Field1, Field2, Field3 and ignoring any filters on columns Field4, Field5.

I can't just do this:

 

SUMX(
  SUMMARIZE(
     ALLEXCEPT(Table1, Table1[Field1], Table1[Field2], Table1[Field3]),
     Table1[Field1], 
     Table1[Field2], 
     Table1[Field3]
  ), 
  Field3
)

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User IV
Super User IV

@wvadik , Try like

 

SUMX(
SUMMARIZE(
calculateTable(Table1, all(Table1[Field4]), all(Table1[Field5])),
Table1[Field1],
Table1[Field2],
Table1[Field3]
),
Field3
)

 

or 

SUMX(
SUMMARIZE(
calculateTable(Table1, removefilters(Table1[Field4]), removefilters(Table1[Field5])),
Table1[Field1],
Table1[Field2],
Table1[Field3]
),
Field3
)



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User IV
Super User IV

@wvadik , Try like

 

SUMX(
SUMMARIZE(
calculateTable(Table1, all(Table1[Field4]), all(Table1[Field5])),
Table1[Field1],
Table1[Field2],
Table1[Field3]
),
Field3
)

 

or 

SUMX(
SUMMARIZE(
calculateTable(Table1, removefilters(Table1[Field4]), removefilters(Table1[Field5])),
Table1[Field1],
Table1[Field2],
Table1[Field3]
),
Field3
)



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.