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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
BogdanBB
New Member

Dynamic Slicer when drill down in visual

I have imported a table into Power BI that contains invoice number, product name, product value, invoice date, client name, brand, and other invoice-related information.

In my report, I have placed the invoice date on the X-axis, which drills down from year to day, and on the Y-axis, I have the total product value along with a margin line. I also have several slicers (Client, Brand, Product, etc.).

I want to configure the 'Client' slicer so that when I navigate through the visual—for example, when I drill down to August 2024 - I see only the clients who were invoiced during that period, rather than all clients.

How can I achieve this?

BogdanBB_0-1742889619364.png

BogdanBB_1-1742889661946.png

 

 

5 REPLIES 5
BogdanBB
New Member

Hi,
Unfortunately, the solution provided doesn't seem to work in my case. Based on what I’ve read on several forums, it appears that this approach doesn’t work properly with a regular Slicer.

The workaround I found was to use a Button slicer instead of the standard Slicer, and that seems to solve the issue.

Let me know if there's a better approach, but for now, switching to the Button slicer worked for me.

Best regards

pankajnamekar25
Memorable Member
Memorable Member

Hello ,

 

You can create a measure add as that aa visual level filter 

 

ClientsWithInvoices =
IF(
CALCULATE(COUNTROWS('InvoiceTable'), ALLSELECTED('InvoiceTable'[Invoice Date])) > 0, 1,0)

hey, 

I also tried this solution but it doesn't change my active clients in the slicer.

BogdanBB_0-1742890613841.png

BogdanBB_1-1742890649194.png

 

 

Hi @BogdanBB ,

If the previous method does not yield the desired results, you can develop a measure to dynamically filter clients.
DAX :

Clients Sales = 
VAR SelectedPeriod = VALUES('Invoices'[Invoice Date])
RETURN IF(
    CALCULATE(SUM('Invoices'[Product Value]), 'Invoices'[Invoice Date] IN SelectedPeriod) > 0,
    1,
    0
)



If this post was helpful, please consider marking Accept as solution to assist other members in finding it more easily.

If you continue to face issues, feel free to reach out to us for further assistance!

Hi @BogdanBB 

Just checking in @pankajnamekar25 has shared a response to your query regarding configuring the slicer so that it dynamically filters clients based on the date range selected in your visual.

If the provided solution helped, please consider marking it as Accepted Answer, as it may also benefit others facing a similar challenge. If you're still looking for more clarity or facing issues, feel free to share more details — we’re happy to assist further.

 

Thank you for being part of the Microsoft Fabric Community!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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