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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register 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

 

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

Check out the May 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

May 2025 Monthly Update

Fabric Community Update - May 2025

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