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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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?

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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