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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.