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 PBI gang
I have this measure;
Solved! Go to Solution.
Hi @HB13 ,
Please try this:-
VAR max_Year_ =
MAX ( _DateTable[Years] )
VAR min_Year_ =
MIN ( _DateTable[Years] )
RETURN
CALCULATE (
SUM ( Table1[PremiumVAT] ),
FILTER (
Table2,
Table2[InceptionDate].[Year] <= max_Year_
&& Table2[InceptionDate].[Year] >= min_Year_
)
)
+ CALCULATE (
SUM ( Table1[PremiumExclVAT] ),
FILTER (
Table2,
Table2[InceptionDate].[Year] <= max_Year_
&& Table2[InceptionDate].[Year] >= min_Year_
)
)
BR,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @HB13 ,
Please try this:-
VAR max_Year_ =
MAX ( _DateTable[Years] )
VAR min_Year_ =
MIN ( _DateTable[Years] )
RETURN
CALCULATE (
SUM ( Table1[PremiumVAT] ),
FILTER (
Table2,
Table2[InceptionDate].[Year] <= max_Year_
&& Table2[InceptionDate].[Year] >= min_Year_
)
)
+ CALCULATE (
SUM ( Table1[PremiumExclVAT] ),
FILTER (
Table2,
Table2[InceptionDate].[Year] <= max_Year_
&& Table2[InceptionDate].[Year] >= min_Year_
)
)
BR,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Samarth_18
Thank you for your response.
This helped a ton, although I had to adjust the max_ & min_Year variables so that it referenced what the the Date filter was selecting.
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 |
|---|---|
| 69 | |
| 47 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 200 | |
| 125 | |
| 102 | |
| 69 | |
| 53 |