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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dreyes6
Helper I
Helper I

Sum of the current year

ClientCommissionrenewal date
Client A$238,9664/1/2020
Client A$51,7185/1/2020
Client A$87,4366/1/2020
Client A$204,1077/1/2020
Client A$231,2598/1/2021
Client A$650,8599/1/2021
Client A$45,24710/1/2021
Client A$161,18711/1/2021
Client A$19,00912/1/2021
Client A$012/31/2021
Client A$5,328,3431/1/2022
Client A$121,8923/1/2022
Client A$180,9994/1/2022
Client A$15/1/2022
Client A$06/1/2022
Client B$4004/1/2020
Client B$4005/1/2020
Client B$4006/1/2020
Client B$4007/1/2020
Client B$4008/1/2021
Client B$6,0009/1/2021
Client B$6,00010/1/2021
Client B$6,00011/1/2021
Client B$3,00012/1/2021
Client B$3,00012/31/2021
Client B$3,0001/1/2022
Client B$3,0003/1/2022
Client B$6,0004/1/2022
Client B$6,0005/1/2022
Client B$6,0006/1/2022

 

 

can someone help on this, I need to get the sum for all commissions for current year

Sum Commission Latest Year =
CALCULATE (SUM(table[Commission] ),
FILTER (ALL(table[RenewalDate]),
YEAR(table[RenewalDate] ) =
YEAR ( MAX ( table[RenewalDate]))))

but this formula doesn't have the correct totalsum 
1 ACCEPTED SOLUTION
Dhacd
Resolver III
Resolver III

Hi @dreyes6,
This can be achieved by the following measure.

 
YTD = CALCULATE(sum('Table'[Commission]),DATESYTD('Calendar'[Date]))

you need to have a Master calendar table and feed the date column to the datesytd

If you think this is helpful please give an upvote. and add as a solution.

View solution in original post

1 REPLY 1
Dhacd
Resolver III
Resolver III

Hi @dreyes6,
This can be achieved by the following measure.

 
YTD = CALCULATE(sum('Table'[Commission]),DATESYTD('Calendar'[Date]))

you need to have a Master calendar table and feed the date column to the datesytd

If you think this is helpful please give an upvote. and add as a solution.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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