cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors