Forum Discussion

ggualdi's avatar
ggualdi
New Member
1 year ago
Solved

Filter a table with the values from another table

Hi, I'm new in this forum, hope some one can help me to solve the issue below.

I have a power bi report with two pages, each page with a visual table reading from the same data source.

The data source contains Contract data, each Contract can have more than one Line Item, and each Line Item can have a different Supplier.

The first page have a slicer on the Supplier (single selection), and it shows shows only the Contracts having at least one Line Item with the selected Supplier.

Then in the second page, I have to show the whole Contract amount, including the amount affecting different Suppliers not only the one selected in the first page.

For this reason, I apply the Supplier Slicer ONLY to the first page and not to the second page.

The need is that the second page should show ONLY the Contracts shown in the first page.

Is there any possible solution ?

Thank you in advance

Guido

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi ggualdi 
    Thank you for reaching out microsoft fabric community forum.

    You're right not to sync the slicer to the second page, since the goal is to show all line items for the contracts that match the supplier filter on page 1 — even if some of those line items belong to different suppliers.

    Here’s one way to handle this:

    • On page 1, keep your existing slicer on Supplier (single selection) — this filters the list of contracts correctly.
    • Then, create a DAX logic that captures the list of Contract IDs visible on page 1 (based on the selected Supplier).
    • On page 2, use that list to filter the table so it shows all line items for those contracts, regardless of Supplier.

    If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community
    Thank you.

6 Replies

    • ggualdi's avatar
      ggualdi
      New Member

      Hi Deku, of course I know that slicers can be sync .. but this is exactly what I cannot do. As indicated in my question, the second page must show all the Line Items in the Contract, including those booked against Supplier different from the one filtered in the selection.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ggualdi 
    Thank you for reaching out microsoft fabric community forum.

    You're right not to sync the slicer to the second page, since the goal is to show all line items for the contracts that match the supplier filter on page 1 — even if some of those line items belong to different suppliers.

    Here’s one way to handle this:

    • On page 1, keep your existing slicer on Supplier (single selection) — this filters the list of contracts correctly.
    • Then, create a DAX logic that captures the list of Contract IDs visible on page 1 (based on the selected Supplier).
    • On page 2, use that list to filter the table so it shows all line items for those contracts, regardless of Supplier.

    If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community
    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ggualdi 

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ggualdi 
    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ggualdi 

    I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
    Thank you.