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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
bdehning
Post Prodigy
Post Prodigy

Need another Tooltip Measure I believe for chart last 3 years

I got some great help recently on a chart to only show 3 years of customer data..

 

I have other charts on my dashboard that have different X and Y Axis Columns.  

My report is started by selecting a customeron a slicer.  Customer data may be up to 10 years but many may only have 1 or two years and may go back to 2021 and 2020.  

I use an all page filter to allow 10 Years using IssueDate for all pages.  

I can add IssueDate to a specific chart and that allows me to see the actual IssueDates available for the Customer selected.  If I do that and then try to use last 3 years to get my data it uses today as looking back point.

 

What measure could I use for the charts so that it would show up to 3 years of data for any customer selected by the original slicer.  


Need help. 

1 ACCEPTED SOLUTION

It did not work for my situation. I was able to reolve it using a different measure.

Thanks for your efforts.   

View solution in original post

6 REPLIES 6
v-nmadadi-msft
Community Support
Community Support

Hi @bdehning ,

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.

 

It did not work for my situation. I was able to reolve it using a different measure.

Thanks for your efforts.   

Hi @bdehning ,

We really appreciate your efforts and for letting us know the update on the issue.

Please share a short description of the Dax measure that has worked for you and accept that as the solution so as to help other community members.
Please continue using fabric community forum for your further assistance.
Thank you

 

v-nmadadi-msft
Community Support
Community Support

Hi  @bdehning ,
Thanks for reaching out to the Microsoft fabric community forum.

You can use DAX measure similar to the one below to only show customer data from last three years,

ShowLast2Years =
VAR MaxYear = CALCULATE(MAX('YourTable'[YEAR_ID]), ALL('YourTable'))
VAR MinYear = MaxYear - 2
RETURN
IF(
    'YourTable'[YEAR_ID] >= MinYear,
    1,
    0
)



Please note that to apply the filter, drag the Created measure into the visual level filters pane of your bar chart. Then, set the filter condition to is 1. This will ensure that the chart only displays data for the last Three years in your dataset.

vnmadadimsft_1-1745393534339.png

 

vnmadadimsft_2-1745393588466.png

 

 

 

If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards

amitchandak
Super User
Super User

@bdehning , If you select a date or value and then want to have a range refer

Create a 12-Month Trend with Single Slicer Selection on the connected Date table- https://youtu.be/7dPrPk6LPYU

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

I do not need or want a range or date to select.     I need a measure that restricts the data to three years sutomatically based upon the customer selected on first page of report.  

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.