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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

TOTAL QUARTER

HELLO, I NEED SUM THE TOTAL QUARTER, FOR EXEMPLE, I HAVE 12 MONTHS AND NEED (ALWAYS) SUM JUST THE LAST QUARTER.

 

1,2,3,4,5,6,7,8,9,10,11,12

 

SUM 123

SUM 456

SUM 789

SUM 101112

 

IF THERE IS 1,2,3,4,5,6, CONSIDER (SUM) JUST THE ONLY 4,5,6.

 

THANKS!

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Anonymous 
Try this measure:

 

Total last Quarter = 
var _LQ = QUARTER(LASTDATE('Table'[Date]))
return
SUMx(filter('Table',QUARTER('Table'[Date])=_LQ),'Table'[Value])

 

 

Output:

VahidDM_0-1630932137703.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos ✌️!!

View solution in original post

4 REPLIES 4
VahidDM
Super User
Super User

Hi @Anonymous 
Try this measure:

 

Total last Quarter = 
var _LQ = QUARTER(LASTDATE('Table'[Date]))
return
SUMx(filter('Table',QUARTER('Table'[Date])=_LQ),'Table'[Value])

 

 

Output:

VahidDM_0-1630932137703.png

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos ✌️!!

Anonymous
Not applicable

Great @VahidDM thanks you so much!

Anonymous
Not applicable

The actual format is DD/MM/YYYY, it was createda function TOTALQTD(SUM(numer1), date)), believe that that TOTALQTD be the function for sum the quarter!

amitchandak
Super User
Super User

@Anonymous , is this actual data format?

Can you share sample data and sample output in table format?

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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