cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

DAX ALL function not working with multiple filter

I have 3 dimension and 1 fact tables. I want calculate the sum(Fact[Value]) that filter through the dimension tables except that one dimension table should ignore the filter context, see my dax measure below :

 

Measure = CALCULATE( SUM( FACT[Value]), FILTER(DimCategory, DimCategory[Category] = "Marker")

                   , FILTER(DimDept, DimDept[Dept] =1 , ALL(DimHierarchy) )

The ALL(DimHierarchy) is not ignoring the Filter context in DimHierarchy table. I need other filters of Marker and dept =1 to filter through but the dimhierarchy should return grandtotal of the table .

How can i make this dax working. thanks

4 REPLIES 4
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try the following formula:

 

Measure = 
CALCULATE( 
    SUM( FACT[Value]),
    DimCategory[Category] = "Marker",
    DimDept[Dept] = 1,
    ALL('Fact'[Hierarchy])
)

v-kkf-msft_0-1619589570280.png

 

v-kkf-msft_1-1619589570282.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

amitchandak
Super User
Super User

@Anonymous , if you selected something from DimHierarchy and then using all, you will get the value summed up against that value only

I explained this case in details here :: Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE

Anonymous
Not applicable

I have watched the video and it is not what i was looking for.

I needed the rollup from DimHierarchy table despite I am filtering category Marker from another table

Anonymous
Not applicable

Please can you elaborate with DAX because I look at the video and I'm still confused.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors