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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.