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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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 AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.