The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I have two interacting graphs: line chart with 3 points (at Q4 2018, Q1 2019 and Q2 2019) and a donut chart. When I click to the data point on the line graph (picking Q2 2019, for example), my donut chart is adjusting, showing the data breakdown for this quarter. The issue is following: if I do not choose particularly any of the quarters on a line graph (so all of them is selected), my donut chart show the aggregate breakdown, summing all 3 quarters. What I need is that if no particular point on a line graph is chosen, the donut chart shows the breakdown of Q2 2019 ONLY. First option is to make a button with "please pick a quarter" inscription, but I wonder whether it is possible to fix the graph on Q2 2019 in case no other particular quarter is chosen.
Many thanks for your help!
Natalia
@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.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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.