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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Tan008
New Member

Passing values to another page using drill trough

I have a field parameter slicer in Power BI set to multi-select mode. The slicer includes metrics like Canada_Profit, France_Profit, Germany_Profit, Maxico_Profit. Same using in newcard.

 

On the source page, I display a card visual showing the selected field parameter dynamically. When I drill through to a second page, I want to pass the selected card's country(e.g., "Canada" or "France") to display its information dynamically on the drillthrough page.
From:

Tan008_0-1743161409425.png

To:

Tan008_1-1743161440423.png

 

1 ACCEPTED SOLUTION
v-csrikanth
Community Support
Community Support

Hi @Tan008 

To pass the selected country from your field parameter slicer to a drillthrough page, follow these steps:

  1. Create a Country Table: List all countries (e.g., Canada, France).
  2. Unpivot Your Data: If your data has separate columns for each country's profit (e.g., Canada_Profit, France_Profit), unpivot it in Power Query to have a "Country" and "Profit" column.
  3. Set Relationships: Link the Country table to your unpivoted data on the Country column.
  4. Create a Measure: Use a measure to select the appropriate profit based on the country:
    ************************************************

text

Selected Profit =

SWITCH(

    TRUE(),

    SELECTEDVALUE('YourCountryTable'[Country]) = "Canada", SUM(YourTable[Canada_Profit]),

    SELECTEDVALUE('YourCountryTable'[Country]) = "France", SUM(YourTable[France_Profit]),

    BLANK()

)
************************************************

  1. Configure Drill through: Add the "Country" field from your Country table to the drillthrough filters on your drillthrough page.
  2. Update Visuals: Use the "Selected Profit" measure in your visuals on both pages.

This setup allows dynamic filtering based on the selected country and ensures proper drillthrough functionality. Let me know if you need further assistance!

If the above information helps you, please give us a Kudos and marked the Accept as a solution.

Best Regards,

Community Support Team _ C Srikanth.

View solution in original post

3 REPLIES 3
v-csrikanth
Community Support
Community Support

Hi @Tan008 

To pass the selected country from your field parameter slicer to a drillthrough page, follow these steps:

  1. Create a Country Table: List all countries (e.g., Canada, France).
  2. Unpivot Your Data: If your data has separate columns for each country's profit (e.g., Canada_Profit, France_Profit), unpivot it in Power Query to have a "Country" and "Profit" column.
  3. Set Relationships: Link the Country table to your unpivoted data on the Country column.
  4. Create a Measure: Use a measure to select the appropriate profit based on the country:
    ************************************************

text

Selected Profit =

SWITCH(

    TRUE(),

    SELECTEDVALUE('YourCountryTable'[Country]) = "Canada", SUM(YourTable[Canada_Profit]),

    SELECTEDVALUE('YourCountryTable'[Country]) = "France", SUM(YourTable[France_Profit]),

    BLANK()

)
************************************************

  1. Configure Drill through: Add the "Country" field from your Country table to the drillthrough filters on your drillthrough page.
  2. Update Visuals: Use the "Selected Profit" measure in your visuals on both pages.

This setup allows dynamic filtering based on the selected country and ensures proper drillthrough functionality. Let me know if you need further assistance!

If the above information helps you, please give us a Kudos and marked the Accept as a solution.

Best Regards,

Community Support Team _ C Srikanth.

Tan008
New Member

@Deku I tried your suggestion, but it’s not working. I have a field parameter slicer that I’m also using on new cards, which are created dynamically based on measures. On Page 2, I need to set up drillthrough functionality to pass the individual measures so that Page 1 can successfully drill through to Page 2.

Tan008_0-1743404592209.png

 

Tan008_1-1743404638048.png

Tan008_4-1743404927466.png

Tan008_2-1743404732179.png

 

 

Deku
Super User
Super User

You would need to use the new card visual, with small mutilples by country, with a profit measure. Then you will have a country filter context that can be used for drillthrough


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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