Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
HUlm1
Helper I
Helper I

Limit a graph to one financial year

Hi

 

I have a fully functioning financial calendar with a date slicer based on a financial year.  I have two charts.  One which shows costs and Sales by financial year and the other by Month Prefix (our financial year is from Apr.1st).  The chart which shows costs per year is not filtered by the Slicer.  The one which shows costs by the month IS filtered by the slicer.   This works fine unless a project goes on for more than one financial year. 

 

I have several other visualisations on this report where it is useful to clear the date slicer - and therefore see all years.  Unfortunately when I do that costs for April 2018 will be added to the costs for April 2019 on the same Month Prefix Chart (for example).  I would prefer that the graph shows each and every month even for 2 or 3 years or, better really, just doesn't data in that chart when the slicer is set to ALL. 

 

So, I would ideally like to control the month prefix costs and sales chart such that if date range = >1 financial year it will be blank - or shows all the months.

 

I hope that's clear?  Thank you in hope!

 

1 ACCEPTED SOLUTION

Hi @HUlm1 ,

 

look at this blog post:

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

4 REPLIES 4
v-eachen-msft
Community Support
Community Support

Hi @HUlm1 ,

 

You could create a measure with IF formula to check if the date range is lager than one financial year and get the output like 1 or 0.
Then use filter to show the correct result( show 0 or 1 ).

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hi @HUlm1 ,

 

look at this blog post:

https://exceleratorbi.com.au/show-or-hide-a-power-bi-visual-based-on-selection/

 

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Thank you Mwegener

 

I adopted the white card option.  It's a perfectly suitable work around

Cheers

Hi @HUlm1,

 

could you add the year to the chart on the month axis?

And Expand the hierarchy?

Expand Hierarchy.png

If I answered your question, please mark my post as solution, this will also help others.

Please give Kudos for support.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.