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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
pbi1908
Helper III
Helper III

A slicer filter a matrix but not a measure

Hi all, i have a problem, i have a table in which i have my Customer and the Open Balances which i have with this customer. I also have a slicer with a trader which is the people which traded that money with this customer. 

 

I want when i filter the slicer to see all the Customers which are related to this Trader, but in the Balance i want to see the whole amount for the customers and not the amount which came from this Trader. 

 

In my example you will find in the .pbix Trader B had trade only 5 euro with Deloitte and Trader C 256.  When i filter Trader B i want to see Deloitte since is a customer of Trader B and i want to see a summarized amount i.e 261.

 

If I use the ALL funciton the number is correct but my filter is now working, It doesn't filter at all the table. 

 

Thank you. 

 

 

 

https://drive.google.com/file/d/1sWZLMCH8Cg56jA_orYmuIr-eB6GOSJ9Y/view?usp=sharing

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @pbi1908 ,

 

I suggest you to try code as below.

Measure 2 = 
VAR _MEASURE =
    CALCULATE ( SUM ( BALANCE[BALANCES] ), ALL ( TRADER_ID[NAME] ) )
RETURN
    IF ( ISBLANK ( CALCULATE ( SUM ( BALANCE[BALANCES] ) ) ), BLANK (), _MEASURE )

Result is as below.

vrzhoumsft_0-1683014690719.png

 

Best Regards,
Rico Zhou

 

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

4 REPLIES 4
pbi1908
Helper III
Helper III

That works thank you very much. Can you explain a bit the logic behind it ? 

 

As far as i understood you tried this because the measure will be never blank but how it gets filtered from the traders ?

Anonymous
Not applicable

Hi @pbi1908 ,

 

Here I just add a IF function, it will check whether the filter sum will return blank, if blank the measure will return blank directly.

 

Best Regards,
Rico Zhou

 

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

Hmm okk thanks @Anonymous , last question . 

 

What if i add another one component like in the updated .pbix, so i have also the Payment Terms which coming from another dimension table which is connected with the balances so they are getting filtered from Traders as well. 

 

What i want is still to see the, the customers of a Trader and the all the payment terms of this trader with the overall balance. 

 

 

https://drive.google.com/file/d/1aLUA2OnPc2qebgv4c98k9rcF-xZfiY-o/view?usp=sharing

Anonymous
Not applicable

Hi @pbi1908 ,

 

I suggest you to try code as below.

Measure 2 = 
VAR _MEASURE =
    CALCULATE ( SUM ( BALANCE[BALANCES] ), ALL ( TRADER_ID[NAME] ) )
RETURN
    IF ( ISBLANK ( CALCULATE ( SUM ( BALANCE[BALANCES] ) ) ), BLANK (), _MEASURE )

Result is as below.

vrzhoumsft_0-1683014690719.png

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.