Forum Discussion
Fixing interacting graphs on the data point
Natalia1234 it can be easily achieved, you have to chose seperate measure for your donut chart and that measure will check if not Quarter selected then use most recent quarter for donut measure otherwise use whatever quarter is selected.
This way you can default to most recent and also give the ability to user to update donut chart when a quarter is selected.
- Natalia12347 years agoRegular Visitor
Thank you! I guess, it should be logically like this: "if(table has a filter; show this filter; filter the last recent quarter)". The first step I think can be solved with "ISFILTERED". As a result, I wrote this, but it returns an error "Argument '2' in IF function is required.". Here is the code:
Measure = IF(ISFILTERED('Table_for_line_chart'[Quarter]);;FILTER('table_for_donut_chart';'table_for_donut_chart'[Quarter]="2019 Q2"))I guess the problem is that It do nothing in case of Isfiltered = true. Or should I use the table_for_donut_chart'[Quarter] in ISFILTERED instead? Also it is not clear what should I do with such a measure: should I just add it on a donut chart or replace the quarter with it..?
I would very much appreciate your help! I am really new in POWER BI.