cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
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.

Helper I

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

 Type Owner Amount Date Balance Owner 1 \$5,983 6/30/2020 Balance Owner 1 \$5,815 6/30/2020 Balance Owner 1 \$12,027 6/30/2021 Balance Owner 2 \$3,632 6/30/2021 Balance Owner 1 \$646 6/30/2022 Balance Owner 2 \$10,325 6/30/2022 Balance Owner 1 \$2,262 6/30/2022 Balance Owner 1 \$26,725 6/30/2022 Balance Owner 3 \$100,000 6/30/2022 Balance Owner 3 \$162 6/30/2022 Balance Owner 3 \$569 6/30/2022 Balance Owner 3 \$98 6/30/2022 Balance Owner 3 \$569 6/30/2022 Balance Owner 3 \$98 6/30/2022 Balance Owner 3 \$50,913 6/30/2022 Balance Owner 3 \$3,321 6/30/2022 Balance Owner 3 \$9,803 6/30/2022 Balance Owner 1 \$290 6/30/2022 Balance Owner 1 \$11,906 6/30/2022 Balance Owner 1 \$45,971 6/30/2022 Balance Owner 2 \$100,000 6/30/2022 Balance Owner 1 \$9,927 6/30/2022 Balance Owner 1 \$46,746 6/30/2022 Balance Owner 2 \$1,416 6/30/2022 Balance Owner 1 \$9,632 6/30/2022 Balance Owner 1 \$404 6/30/2022 Balance Owner 1 \$513 6/30/2022 Balance Owner 2 \$47,621 6/30/2022 Balance Owner 1 \$2,137 6/30/2022

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors