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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
tracytran91
Helper III
Helper III

DAX measure able to overwrite the filters on filter panel

Hi friends, 

 

I would like to write a DAX measure which is able to overwrite the filter on filter panel. 

In my case, I used filter on this page exclude 2 customers:

 

tracytran91_2-1634620618355.png

On the same page, I wanna have a table to show up the cost of 2 customers. 

 

tracytran91_1-1634620565491.png

 

Could anyone please kindly help me out regarding this issue?

Thank you for your time. 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @tracytran91 

 

Try this measure:

Customer_M = 
VAR _all =
    SUMMARIZE( ALL( 'Table' ), [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _this =
    SUMMARIZE( 'Table', [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _1 =
    EXCEPT( _all, _this )
RETURN
    CONCATENATEX(_1,[Customer],"
")
Cost_M =
VAR _all =
    SUMMARIZE( ALL( 'Table' ), [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _this =
    SUMMARIZE( 'Table', [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _1 =
    EXCEPT( _all, _this )
RETURN
    CONCATENATEX( _1, FORMAT( [sum], "Standard" ), "
" )

 result wil change if you change the filter on the page:

vchenwuzmsft_0-1634810618772.png

i put the pbix file in the attachment you can reference.

Best Regards

Community Support Team _ chenwu zhu

 

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

Hi @tracytran91 

 

Try this measure:

Customer_M = 
VAR _all =
    SUMMARIZE( ALL( 'Table' ), [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _this =
    SUMMARIZE( 'Table', [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _1 =
    EXCEPT( _all, _this )
RETURN
    CONCATENATEX(_1,[Customer],"
")
Cost_M =
VAR _all =
    SUMMARIZE( ALL( 'Table' ), [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _this =
    SUMMARIZE( 'Table', [Customer], [Cost], "sum", SUM( 'Table'[Cost] ) )
VAR _1 =
    EXCEPT( _all, _this )
RETURN
    CONCATENATEX( _1, FORMAT( [sum], "Standard" ), "
" )

 result wil change if you change the filter on the page:

vchenwuzmsft_0-1634810618772.png

i put the pbix file in the attachment you can reference.

Best Regards

Community Support Team _ chenwu zhu

 

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

VahidDM
Super User
Super User

Hi @tracytran91 

 

You can create a costum table and use that:


New Table = filter(all(Table), [Customer]=121020781&&[Customer]=121020968)

https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-calculated-tables

 

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

Appreciate your Kudos!!



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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