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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
mdavis
Regular Visitor

Calculating value for specific quarterly goal within a table

Hi all -

 

I am currently trying to calculate a quarterly sales goal for a new sales rep. I have the quarterly goals and already a measure calculating that t

 

Total Revenue:

QTR 1: $100,000

QTR 2: $200,000

QTR 3: $300,000

QTR 4: $400,000

 

Goals per Quarter:

QTR 1: $90,000

QTR 2: $250,000

QTR 3: $310,000

QTR 4: $450,000

 

Leadership wants me to calculate a column of a table that shows the % to goal by quarter but I can't figure out how to build the quarter filter into the formula. I have a date table with relationship to the value table. 

 

I've tried:


(IF(DATESBETWEEN('Date'[Date],DATE(2019,1,1), DATE(2019,31,3)), ([Total Revenue Amount/100000)),

IF(DATESBETWEEN('Date'[Date],DATE(2019,1,1), DATE(2019,31,3)),([Total Revenue Amount/250000)),

IF(DATESBETWEEN('Date Table'[Date],DATE(2019,7,1),DATE(2019,9,30)),([Total Revenue Amount]/310000)),

IF(DATESBETWEEN('Date Table'[Date],DATE(2019,10,1),DATE(2019,31,12)),([Total Revenue Amount ]/450,000)))

 

I've also tried using STARTOFQUARTER and ENDOFQUARTER, SWITCH(), and nested IF() statements but nothing works. 

 

Ideally it would look like the below, with each quarter calculating based on that specific quarter's revenue goal in the table. 

 

Capture2.PNG

 

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

So if you're using a table visual, this should be very easy.

 

Set the date to use a hierarchy instead of the straight value, and use only Year and Quarter.  Then add the [Total Revenue Amount] as a value, and a percentage calculation as your 3rd value.  

 

snipa.PNG

I'm not sure how you have the goal amounts stored in your model (either associated with each person or year/quarter or what), so I'm going to assume that you have each goal associated with a specific quarter and can add the percentage calculation measure yourself. 

If you need further help on how to set up goals within your data so that they correctly associate to a specific person/year/quarter, or how to create a date dimension, feel free to follow up here.

View solution in original post

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

So if you're using a table visual, this should be very easy.

 

Set the date to use a hierarchy instead of the straight value, and use only Year and Quarter.  Then add the [Total Revenue Amount] as a value, and a percentage calculation as your 3rd value.  

 

snipa.PNG

I'm not sure how you have the goal amounts stored in your model (either associated with each person or year/quarter or what), so I'm going to assume that you have each goal associated with a specific quarter and can add the percentage calculation measure yourself. 

If you need further help on how to set up goals within your data so that they correctly associate to a specific person/year/quarter, or how to create a date dimension, feel free to follow up here.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors