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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
0Experience
Helper III
Helper III

What could be the equivalent DAX of this Power Pivot Search

Hello Everyone,

 

In my power pivot table I can use the below fields to search my result

 

Filters: Name, Category

Rows: Year

Values: Sum of Rate

Now, what could be the equivalent DAX for this search technique?

I  tried 

DAX_SUM = Calculate(Sum(Table[Rate]),
Allexcept(Table,
Tabel[Name],
Table[Year],
Table[Category]))

 

From my DAX, if I do not summarize the DAX_SUM then I can see the summation for each year, name, and category is okay. But, if I use the Sum of DAX_SUM it is showing very big summation number. 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

ALLEXCEPT removes all other filters. It does not modify the filters on your selected columns. 

 

Not sure what this has to do with search?

View solution in original post

Anonymous
Not applicable

Hi, @0Experience 

 

The method you are currently using and is usually correct to preserve the context of the specified column when summarizing the Rate. However, as Ibendlin said, there is a problem with context, and the problem of incorrect sums when using "DAX_SUM sum" can stem from the way the sum is calculated across the entire dataset without the expected context, and there is an improved approach here

 

DAX_SUM = SUMX(
    VALUES(Table[Name]) * VALUES(Table[Year]) * VALUES(Table[Category]),
    CALCULATE(SUM(Table[Rate]))
)

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @0Experience 

 

The method you are currently using and is usually correct to preserve the context of the specified column when summarizing the Rate. However, as Ibendlin said, there is a problem with context, and the problem of incorrect sums when using "DAX_SUM sum" can stem from the way the sum is calculated across the entire dataset without the expected context, and there is an improved approach here

 

DAX_SUM = SUMX(
    VALUES(Table[Name]) * VALUES(Table[Year]) * VALUES(Table[Category]),
    CALCULATE(SUM(Table[Rate]))
)

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

ALLEXCEPT removes all other filters. It does not modify the filters on your selected columns. 

 

Not sure what this has to do with search?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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