Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am struggling to fix like the same interaction issue between pie chart and table .
Here in the table you can see 3 different cost category columns , but only cost dynamic should be kept finally and other 2 will remove , just for reference i have added all the cost category in the table.
you could see the measure for cost dynamic which will work based on the selection in the Offer type slicer (if we select any option from the slicer offer type then the result would be from cost logic otherwise it will show the result from cost combined) , this works fine .
Now i want the same logic should be applied to pie chart (if we select any partition from the pie chart then the result would be from cost logic otherwise it will show the result from cost combined)
Green circle is the expected result when click in pie chart .
Pie chart data is Cost logic
Below the used DAX :
Thanks
DK
Solved! Go to Solution.
Adjust your Cost Dynamic measure to consider the pie chart’s selection in addition to the slicer selection. Right now, it only checks if an Offer Type is filtered. Extend that logic to also check if the pie chart’s field is being filtered. For example, if your pie chart is based on Category:
Cost Dynamic =
IF(
(
ISFILTERED('Test Delivery Updates'[Offer Type]) && HASONEVALUE('Test Delivery Updates'[Offer Type])
)
||
(
ISFILTERED('Test Delivery Updates'[Category]) && HASONEVALUE('Test Delivery Updates'[Category])
),
MAX('Test Delivery Updates'[Cost logic]),
MAX('Test Delivery Updates'[Cost Combined])
)
Replace [Category] with the actual field used in your pie chart. This ensures that when a user selects a slice in the pie chart, the measure switches to use Cost logic, just like it does when a single Offer Type is selected.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn|Twitter|Blog |YouTube
Adjust your Cost Dynamic measure to consider the pie chart’s selection in addition to the slicer selection. Right now, it only checks if an Offer Type is filtered. Extend that logic to also check if the pie chart’s field is being filtered. For example, if your pie chart is based on Category:
Cost Dynamic =
IF(
(
ISFILTERED('Test Delivery Updates'[Offer Type]) && HASONEVALUE('Test Delivery Updates'[Offer Type])
)
||
(
ISFILTERED('Test Delivery Updates'[Category]) && HASONEVALUE('Test Delivery Updates'[Category])
),
MAX('Test Delivery Updates'[Cost logic]),
MAX('Test Delivery Updates'[Cost Combined])
)
Replace [Category] with the actual field used in your pie chart. This ensures that when a user selects a slice in the pie chart, the measure switches to use Cost logic, just like it does when a single Offer Type is selected.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn|Twitter|Blog |YouTube
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |