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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
I am currently working with insurance data where policy gets renewed or new policy is placed. I want to achieve something like this:-
There is a policy ABC-2021 which gets renewed and policy no changes to ABC-2022. This policy again gets renewed next year and becomes policy ABC-2023 and so on. I have data in below format.
My objective is whenever I select any policy no, I should see its previous policy performance. For eg if I select ABC-2023, I should see data for ABC-2022 as well like in the below chart.
I have written below DAX
last_year_value =
What am I missing?
Regards,
Amit Darak
Solved! Go to Solution.
It's much simpler.
Hi,
It worked well when I didn't use the filter function.
I tried using this dax with filter function, it gave me blank values.
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
Hi,
I think I complicated it unnecessarily. It was pretty simple.
Thanks.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 150 | |
| 107 | |
| 64 | |
| 36 | |
| 36 |