Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello.
I have a PBI Visiual Line stacked bar chart. I have two measures, one current year sales and one previous year sales.
When I select the bar relating to current year, my other visuals (tables charts showing results by category) all change to show data related to the visual. When I select the previous year sales my visuals all show as blank.
Why is this, I know last year we had sales of £288 on 8th Jan, but when I select this line, I want my table data to change to show previous year. I used SAMEPERIODLASTYEAR to create my previous year data.
Please can I have some help?
Hi @VijayP ,
Thanks for your quick response.
Hi @Sam7 ,
Please have a try.
Create a measure.
Value in last 12 months =
CALCULATE (
SUMX('Table', 'Table'[Value]),
DATESBETWEEN('Table'[Date], EDATE(TODAY(), -12), TODAY())
)
How to Get Your Question Answered Quickly - Microsoft Fabric Community
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Sam7 What are the fields added to other charts . Are you talking about Tooltip or the Visual .
Proud to be a Super User!
You know when you select a visual, maybe a category column, this filters other charts based on this category - it's not a slicer or a tooltip.
I want it so when my line part (the measure using same period previous year) is selected, my other visuals all filter to this, but this does not happen.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.