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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Cross-filtering based on two different columns

 

I have a simple report with Total results card.  The default rule for the card is sum of column Message total result - 13 in this case.

 

But from first table, when a user selects a ConsumerID eg, Global university, Total results card should display 3 (from column Message message result).

 

If user selects both Global university and City university (holding control key after selecting Global university and selcting City university), the card should display  5   ( 3 + 2).  

 

Similar performance is expected from selecting an Attoney from second table.  

 

Message total result should be displayed only when there is no cross-filtrering - no selection from either table. 

 

I need a DAX for this card. 

 

Link to PBIX:   https://drive.google.com/file/d/1n00TRLkwPz6IoBMuWYVm1-Y1X1cV0WAH/view?usp=sharing

 

 

 

Olajumi_0-1618763116116.png

 

 

1 ACCEPTED SOLUTION
selimovd
Super User
Super User

Hey @Anonymous ,

 

I'm not sure if fully understand what you want. The explanation was not very clear for me.

I understood that you want only a value in the measure "Message TOTAL RESULT" when the table is not crossfiltered and no result when it's crossfiltered. Is that right?

 

In that case you can easily check if there is a crossfilter happening with the function ISCROSSFILTERED. If that's the case, return BLANK(), otherwise return the measure.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

View solution in original post

1 REPLY 1
selimovd
Super User
Super User

Hey @Anonymous ,

 

I'm not sure if fully understand what you want. The explanation was not very clear for me.

I understood that you want only a value in the measure "Message TOTAL RESULT" when the table is not crossfiltered and no result when it's crossfiltered. Is that right?

 

In that case you can easily check if there is a crossfilter happening with the function ISCROSSFILTERED. If that's the case, return BLANK(), otherwise return the measure.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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