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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jpbi23
Helper I
Helper I

using future quarter values in a measure calculation

I have a table called MasterAll where I have built these 3 measures, 

 

jpbi23_0-1737041043506.png

 

I have a matrix visual that shows these 3 measures by fiscal quarters. I want to write another measure (FinalTotal) that would take, 

[Booked / Gross Retained $] - [Out-Qtr Late Booked $] + [Out-Qtr LateBooked $]--> value from the next quarter

For example, in 2023-Q1, it would be something like this, 

 

[60,347,535] - [3,209,341] + [1,026,289] --> grabbing 2023-Q2 value. Always should get this value from the next quarter

For another example, in 2023-Q2, it would be something like this, 

 

[72,782,964] - [1,206,289] + [2,620,736] -- grabbing 2023-Q3 value. 

 

is there a way to write this?

 

Thanks,

Jay

2 REPLIES 2
bhanu_gautam
Super User
Super User

@jpbi23 You will need to use the CALCULATE function along with the NEXTQUARTER function to get the value from the next quarter

 

DAX
FinalTotal =
VAR CurrentQuarter = SELECTEDVALUE('MasterAll'[Fiscal Quarter])
VAR NextQuarter = CALCULATE(
SUM('MasterAll'[Out-Qtr LateBooked $]),
NEXTQUARTER('MasterAll'[Fiscal Quarter])
)
RETURN
SUM('MasterAll'[Booked / Gross Retained $]) -
SUM('MasterAll'[Out-Qtr Late Booked $]) +
NextQuarter




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hey thanks for the response @bhanu_gautam 

The fiscal quarter column is not a datetype column. It's in this format "2023-Q1", "2023-Q2". NextQuarter function is not working due to this. Is there another workaround?

 

Jay

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.