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
LaurenceSD
Advocate II
Advocate II

Ignore Date Filters Measure

Hi,

 

I've got a report where i'm looking a current year and the last 2 years. I've filtered the page to be at the start of the current FY & then used SAMEPERIODLASTYEAR to get the prior year figures. However I'm now wanting to add in a Stacked 100% chart to show Guest segmentation by year, but as it's not possible to apply a legend to multiples values, I need to get a formula, that'll bring in all bookings, with the FY as the axis and the Segment as the legend. I've tried ALL and ALLSELECTED, but I'm not getting any joy.

 

Here's what I have at the moment

 

LaurenceSD_0-1621427918492.png

 

& here is what I'd like to have on that same page - is this feasible?

 

LaurenceSD_2-1621428132158.png

 

Thanks

 

 

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@LaurenceSD,

 

See the solution below:

 

https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/ 

 

Excerpt:

 

It is worth remembering that the selection of the values to show on the axis is independent from the measure. If a slicer is filtering one month, there is no way to show additional months from the same table on either the rows or the columns (or the X-axis, as in the example). Therefore, we must create a separate table that is not subject to filtering from the slicer. This way, columns from that table show all the rows, and we can control their visibility through a measure.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@LaurenceSD,

 

See the solution below:

 

https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/ 

 

Excerpt:

 

It is worth remembering that the selection of the values to show on the axis is independent from the measure. If a slicer is filtering one month, there is no way to show additional months from the same table on either the rows or the columns (or the X-axis, as in the example). Therefore, we must create a separate table that is not subject to filtering from the slicer. This way, columns from that table show all the rows, and we can control their visibility through a measure.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.