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! Get ahead of the game and start preparing now! Learn more
Hi,
I have a measure which works fine but I want it to display the results dynamically for current year and last 2 years instead of me manually selecting the years
Is it possible?
Heres my current measure:
1. DistinctAccount = DISTINCTCOUNT('AccountTable'[AccountId])
2. AccountMembers= CALCULATE(
[DistinctAccount],
FILTER(
ALLSELECTED('Calendar'[Date]),
('Calendar'[Date] <= MAX('Calendar'[Date])
))
,FILTER(ALLSELECTED(Id_Table[Termination Year]),(Id_Table[Termination Year]>SELECTEDVALUE('Calendar'[Year])))
Please let me know
Thanks
Hi @Anonymous,
I have a measure which works fine but I want it to display the results dynamically for current year and last 2 years instead of me manually selecting the years
I'm not very clear about your requirement "display the results dynamically for current year and last 2 years instead of me manually selecting the years ".
Do you want your measure will show the value without selecting date in slicer?
If it is convenient, could you share some data sample and your desired output so that we could understand your scenario better and get the solution more quickly.
Best Regards,
Cherry
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |