Forum Discussion
Line Chart interaction with Slicer - FY Vs Previous Years
Hi,
I have a line visual with the following set up:
- X-Axis = Month Name
- Y-Axis = Total Pups Born (FYTD) measure
- Legend = FY (financial year)
This is the result I'm looking for:
So you'll see the cumulative number of puppies born each year with the current year building throughout the Financial Year.
I have a Slicer Visual on the report page with FY and Month Name in a Hierachy set up. I only want this Slicer Visual to show the most recent Financial Year. Doing this would mean I lose the previous Years, so I removed the interaction between the Slicer Visual and the Line Chart.
However, I want the line for the current FY to adjust if the users chooses to remove a Month Name. But because the interaction has been removed, this doesn't happen.
There are other visuals on the page that should only show the current FY.
Any ideas how I can get the behaviour I'm looking for?
Thanks,
Mark
7 Replies
- lbendlin
Super User
Doing this would mean I lose the previous Years, so I removed the interaction between the Slicer Visual and the Line Chart.Instead of removing the interaction you should use a disconnected table to feed your slicer.
- AnonymousNot applicable
- lbendlin
Super User
Create a (calculated) table with the current FY dates. In a hierarchy if you must. Point your slicer to that table.
In your main visual use a measure to probe the selected value(s) of the slicer and render the lines accordingly.
If you like more help please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
- v-venuppu
Community Support
Hi Anonymous ,
Thank you for reaching out to Microsoft Fabric Community.
Thank you lbendlin for the prompt response.
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
- v-venuppu
Community Support
Hi Anonymous ,
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 it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
- AnonymousNot applicable
Hi v-venuppu ,
I've not had a chance to try this. I've just left it with the current action for now.
I'll try find some time in the coming months to revisit this.
Mark
- v-venuppu
Community Support
Hi Anonymous ,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.
Thank you.