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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
brinky
Helper IV
Helper IV

Filter table dynamically with slicers

Hello,

 

I have created this report for sales & turnover as attached, having 2 slicers with month and customer.

 

I have an excel sheet showing comments and date for the customer.

 

I would like that when Month & Customer month is selected the comment appears, and also when select all on both slicerss are chosen comment boc will be empty.

 

Also would such comment will be possible to place on a card instead of a table?

 

Thanks in advance.

 

Capture Customers table.JPGCapture2.JPGCapture1.JPG 

1 ACCEPTED SOLUTION
RMB
Resolver II
Resolver II

Yes, this should be doable, what you need to do is create a Measure that checks if those two columns (date and customer) are filtered and if they are select the comment otherwise show blank.

 

Measure structure should resemble:

Comment_Measure =
IF( ISFILTERED(INSERT DATE COLUMN), //Date filter check.
       IF( ISFILTERED(INSERT CUSTOMER COLUMN), //Customer filter check.
           MAX(INSERT COMMENT COLUMN), //Both were filtered.
           Blank() //Date was filtered but Customer wasn't, you can change this to a default 
                       //message like "Select Date & Customer for Comment"
       ),
       Blank() //Date wasn't filtered, you can change this to a default 
                   //message like "Select Date & Customer for Comment"
)

Now drop that Measure into the card. Keep in mind that this is assuming you only have one comment for a customer in a month, you would need to add more logic to grab a list for example if you have more.

View solution in original post

3 REPLIES 3
RMB
Resolver II
Resolver II

Yes, this should be doable, what you need to do is create a Measure that checks if those two columns (date and customer) are filtered and if they are select the comment otherwise show blank.

 

Measure structure should resemble:

Comment_Measure =
IF( ISFILTERED(INSERT DATE COLUMN), //Date filter check.
       IF( ISFILTERED(INSERT CUSTOMER COLUMN), //Customer filter check.
           MAX(INSERT COMMENT COLUMN), //Both were filtered.
           Blank() //Date was filtered but Customer wasn't, you can change this to a default 
                       //message like "Select Date & Customer for Comment"
       ),
       Blank() //Date wasn't filtered, you can change this to a default 
                   //message like "Select Date & Customer for Comment"
)

Now drop that Measure into the card. Keep in mind that this is assuming you only have one comment for a customer in a month, you would need to add more logic to grab a list for example if you have more.

@RMB Wow works like a charm, thanks a millon.

 

I'm asking as you got me into it, what if I have 2 or more comments for a customer in a month Smiley Happy

 

I'm asking as if it's not that complicated I will do just in case such event will happen.

 

Thanks once agian.

 

Stephen

Anonymous
Not applicable

You can you use the following code instead of the max() :

CONCATENATEX(VALUES(Fact_Table[Column]);Fact_Table[Columnt]; " - ")

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors