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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Scholes
Frequent Visitor

Column (sub) total not correct from measure

Hello.

 

I have created a measure which shows the monhtly value between two dates, a start and an end date.

Scholes_0-1715001841440.png

 

Current Rev per monht = CALCULATE(
    SUM('Rev contract'[Rev per Month]),
    FILTER(CALCULATETABLE('Rev contract',ALL('Calendar')),
        'Rev Contract'[Start]<=MIN('Calendar'[Date])&&
        'Rev Contract'[End]>MIN('Calendar'[Date])
                ))

 

 

As you see the row calculation works but my matrix does not show a column grand total for summing up all the different periods/months.

What do I need to change to my measure?

 

Best regards,

 

 

 

 

3 REPLIES 3
Scholes
Frequent Visitor

@amitchandak 

Ok I managed to get annual totals by combining the SUMX funciton  

Rev per Month = 
SUMX(VALUES(Calendar[Month]),[Current Rev per month]
)

This works only on an annual level. Not for multiple years. I would expect the total for multiple years

 

Scholes_0-1715073393142.png

 

 

 

amitchandak
Super User
Super User

@Scholes , Try like

 

Current Rev per monht = CALCULATE(
SUM('Rev contract'[Rev per Month]),
FILTER(CALCULATETABLE('Rev contract',ALL('Calendar')),
'Rev Contract'[Start]<=Max('Calendar'[Date])&&
'Rev Contract'[End]>=MIN('Calendar'[Date])
))

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

@amitchandak 

Ok I changed the formula when I add year as a column I see now a total  but this total corresponds with the value of the first month, so there is no sum of the individual periods, same as the total value per year is not calculated.

 

Scholes_0-1715004823195.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors