Forum Discussion
table visual should react based on measure on bar chart
| sr no | amount | months |
| 32 | 3 | 06-03-2025 |
| 33 | 1 | 06-03-2025 |
| 34 | 2 | 06-03-2025 |
| 35 | 5 | 06-03-2025 |
| 36 | 6 | 06-02-2025 |
| 37 | 7 | 06-02-2025 |
| 38 | 8 | 06-02-2025 |
| 39 | 9 | 06-02-2025 |
| 40 | 22 | 06-01-2025 |
| 41 | 1 | 06-01-2025 |
| 42 | 4 | 06-01-2025 |
| 43 | 3 | 06-01-2025 |
Hi Team,
I have a table above
i have created 2 measure
please help on this solution
Hi ndgrt150988,
To get your table visual to show dynamically the selected data on your bar charts, ensure that there is cross-filtering between visuals. Power BI automatically filters joined visuals, so when you pick a bar (e.g., for Mar 2025 or Feb 2025), then the table visually should only highlight the rows in line with your selection. In case this isn't occurring, try the following steps:
Edit Interactions
Go to the "Format" tab and select "Edit interactions."
Make sure that for every bar chart, the interaction icon on your table visual is "Filter" (funnel icon) rather than "None" or "Highlight."
Common Fields and Relationships:Make sure that both your bar charts and table visual utilize common fields (like Calendar Year or Month) on which Power BI can consistently apply the filter context.
Ensure that your data model has appropriate relationships between the tables applied in your measures (Greaterthan4, Greaterthan2) and the table visual.
Measure Context:Ensure that the measures (such as Greaterthan4 and Greaterthan2) are well-defined so that they return a scalar value within the context of the chosen month. When necessary, wrapping them with CALCULATE will enforce the filter context.
Once these settings are established, clicking on a bar (for instance, Mar 2025 with a count of 1) will filter your table to only display that one row, and likewise, clicking on Feb 2025 will filter the table to the 4 associated rows🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
đź’ˇ Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
đź”— Curious to explore more? [Discover here].
Let’s keep building smarter solutions together!- Anonymous1 year ago
Hi ndgrt150988
In Power BI, the calculation of metric values is aggregated in the context of existing filters, and it is not itself passed to the detailed data visual as a row-level filter condition. Therefore, when you click on a month on a bar chart, only the filter conditions for the month field are passed to the table visual.
To achieve your desired effect, it is recommended that you calculate Greaterthan4/Greaterthan2 using the Calculate column instead.1. Create calculate columns with the following DAX:
GreaterThan4 = IF('Table'[amount] >= 4, 1, 0)GreaterThan2 = IF('Table'[amount] >= 2, 1, 0)2. Click on the first bar chart, select “Edit interaction” under the “Format” menu, and then select the “no impact” icon in the upper right corner of the second bar chart. Similarly, after clicking on the second bar chart, select the “no impact” icon of the first bar chart. This way, when you click on one of the bars, it will not have an impact on the other bar.
3. The results are as follows:
When you click January in the first bar chart, only 2 rows are displayed in the table visual.When you click on March in the second bar, only 3 rows are displayed in the table visual.
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- grazitti_sapnaSuper User
Hi ndgrt150988,
To get your table visual to show dynamically the selected data on your bar charts, ensure that there is cross-filtering between visuals. Power BI automatically filters joined visuals, so when you pick a bar (e.g., for Mar 2025 or Feb 2025), then the table visually should only highlight the rows in line with your selection. In case this isn't occurring, try the following steps:
Edit Interactions
Go to the "Format" tab and select "Edit interactions."
Make sure that for every bar chart, the interaction icon on your table visual is "Filter" (funnel icon) rather than "None" or "Highlight."
Common Fields and Relationships:Make sure that both your bar charts and table visual utilize common fields (like Calendar Year or Month) on which Power BI can consistently apply the filter context.
Ensure that your data model has appropriate relationships between the tables applied in your measures (Greaterthan4, Greaterthan2) and the table visual.
Measure Context:Ensure that the measures (such as Greaterthan4 and Greaterthan2) are well-defined so that they return a scalar value within the context of the chosen month. When necessary, wrapping them with CALCULATE will enforce the filter context.
Once these settings are established, clicking on a bar (for instance, Mar 2025 with a count of 1) will filter your table to only display that one row, and likewise, clicking on Feb 2025 will filter the table to the 4 associated rows🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
đź’ˇ Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.
đź”— Curious to explore more? [Discover here].
Let’s keep building smarter solutions together! - AnonymousNot applicable
Hi ndgrt150988
In Power BI, the calculation of metric values is aggregated in the context of existing filters, and it is not itself passed to the detailed data visual as a row-level filter condition. Therefore, when you click on a month on a bar chart, only the filter conditions for the month field are passed to the table visual.
To achieve your desired effect, it is recommended that you calculate Greaterthan4/Greaterthan2 using the Calculate column instead.1. Create calculate columns with the following DAX:
GreaterThan4 = IF('Table'[amount] >= 4, 1, 0)GreaterThan2 = IF('Table'[amount] >= 2, 1, 0)2. Click on the first bar chart, select “Edit interaction” under the “Format” menu, and then select the “no impact” icon in the upper right corner of the second bar chart. Similarly, after clicking on the second bar chart, select the “no impact” icon of the first bar chart. This way, when you click on one of the bars, it will not have an impact on the other bar.
3. The results are as follows:
When you click January in the first bar chart, only 2 rows are displayed in the table visual.When you click on March in the second bar, only 3 rows are displayed in the table visual.
Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - AnonymousNot applicable
Hi ndgrt150988,
Thank you for reaching out in Microsoft Community Forum.
Thank you Anonymous , grazitti_sapna for the helpful response.
As suggested by v-xianjtan-msft,grazitti_sapna., I hope this information was helpful. Please let me know if you have any further questions or you'd like to discuss this further. If this answers your question, please "Accept as Solution" and give it a 'Kudos' so others can find it easily.
Please continue using Microsoft community forum.
Regards,
Pavan. - AnonymousNot applicable
Hi ndgrt150988,
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 as Solution" and give a 'Kudos' so other members can easily find it.
Thank you,
Pavan. - AnonymousNot applicable
Hi ndgrt150988,
I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.
If the community member's answer your query, please mark it as "Accept as Solution" and select "Yes" if it was helpful.
If you need any further assistance, feel free to reach out.
Please continue using Microsoft community forum.
Thank you,
Pavan.