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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Sabo256w
Frequent Visitor

Total of MAX over time

Hi 

 

How can I calculate the total over time ontop of the existing measures I have.

 

 

1. This calculates the MAX Budgeted Fee
BudFee_Max = MAX(FACT_MainTable[BudFee])


2. This calculates the SUM of the MAX Budgeted Fee per client
SUMBudFeeMax = SUMX(DISTINCT(DIM_Client[ClientNameFull]), [BudfeeMAX OG])


The reason I did this was due to my data having duplicated Budgeted Fee’s per month (The budgeted Fee can increase over time)

 

Figure 01: The Budgeted fee is actually just 680000 (so when it sums, I get a very large amount. I have resolved this with the above measures)

1.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The problem I am now facing is when I want to a see the total amount over two years, I only get the MAX out of the two years, because there are new transactions for  existing clients.

How can I keep my MAX calculation in tact with provided totals over a time? Please help 😞

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Sabo256w , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Ideally, formula should work. Or you can try like

SUMBudFeeMax = SUMX(Values(DIM_Client[ClientNameFull]), [BudfeeMAX OG])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Sabo256w , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Ideally, formula should work. Or you can try like

SUMBudFeeMax = SUMX(Values(DIM_Client[ClientNameFull]), [BudfeeMAX OG])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.