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
CJKPowerBI
Helper I
Helper I

Modify measure - add to be filtered with current year

Hello,

 

is there a way to modify the below measures:

 

1)

Total per column per year: = sumx(ADDCOLUMNS(SUMMARIZE('Table','Table'[Institution],'Table'[Date].[Year]),"@result",[ValueLatestDate(all Years)]),[@result])

2)
ValueLatestDate(all Years) = Var Max_Date = MAX('Table'[Date])
Var Latest_Value = CALCULATE(SUM('Table'[Amount]),'Table'[Date]=Max_Date)
return Latest_Value


to both include all the values from the current year...

thank you

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @CJKPowerBI 

 

Can you provide sample data for testing? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures. I look forward to your response.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hello @v-zhangti 

 

for the below table as an example and for measure nr.2 above i would like the measure to always show the results for column with "balance" (to be at the measure filtered if possible) and the current year meaning 2022 and the total should be: $482,054

 

TypeOwnerAmountDate
BalanceOwner 1$5,9836/30/2020
BalanceOwner 1$5,8156/30/2020
BalanceOwner 1$12,0276/30/2021
BalanceOwner 2$3,6326/30/2021
BalanceOwner 1$6466/30/2022
BalanceOwner 2$10,3256/30/2022
BalanceOwner 1$2,2626/30/2022
BalanceOwner 1$26,7256/30/2022
BalanceOwner 3$100,0006/30/2022
BalanceOwner 3$1626/30/2022
BalanceOwner 3$5696/30/2022
BalanceOwner 3$986/30/2022
BalanceOwner 3$5696/30/2022
BalanceOwner 3$986/30/2022
BalanceOwner 3$50,9136/30/2022
BalanceOwner 3$3,3216/30/2022
BalanceOwner 3$9,8036/30/2022
BalanceOwner 1$2906/30/2022
BalanceOwner 1$11,9066/30/2022
BalanceOwner 1$45,9716/30/2022
BalanceOwner 2$100,0006/30/2022
BalanceOwner 1$9,9276/30/2022
BalanceOwner 1$46,7466/30/2022
BalanceOwner 2$1,4166/30/2022
BalanceOwner 1$9,6326/30/2022
BalanceOwner 1$4046/30/2022
BalanceOwner 1$5136/30/2022
BalanceOwner 2$47,6216/30/2022
BalanceOwner 1$2,1376/30/2022

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.