cancel
Showing results for
Did you mean:
Helper I

## Calculate measures for yearly quarters

Hello I have to create a card with a measure showing the change of product/request type from quarter to quarter. Our Customer Service Dept gets tons of calls each day and log each call under a request type whether it be product info complaints regulatory questions. They want to closely monitor the change from qtr to qtr under this particular type

We have 13 different products vs 41 different request types.

2nd qtr - (4/1/2021 - 6/30/2021) = 188 total

3rd qtr - (7/1/2021 - 9/30/2021) = 72 total

The table is called MergedInquires, and the 2 respective fields are [Product] and [Request Type]

Can you help me get started on the calculations? I usually have to calculate changes with sales figures so I assume the functions used will differ. I assume the measures needed will be one for the current quater, last quarter, and then a 'change' measure.

1 ACCEPTED SOLUTION
Super User

Hi,

I am not sure if I completely understood what you are trying to do. Nevertheless since you are trying to calculate change from one quarter to another I recommend using Quarter time intelligence functions such as DATESQTD and the ones seen in the picture below:

If possible I would recommend creating a calculation group with the following pattern:

Calculate(selectedmeasure(), DATESQTD('Calendar'[Date])

I hope these tips help you solve your challenge and if they do consider accpeting this as a solution!

Proud to be a Super User!

2 REPLIES 2
Community Support

Hi @AA622 ,

If the problem is still not resolved, please provide detailed error information or the expected result you expect. This is my sample data and test result.

``_count = COUNTROWS ( MergedInquires )``
``CurrentQrt = CALCULATE ( [_count], DATESQTD ( Dates[Date] ) )``
``LastQrt = CALCULATE ( [_count], PREVIOUSQUARTER ( DATESQTD ( Dates[Date] ) ) )``
``Diff = [CurrentQrt] - [LastQrt]``

Best Regards,
Winniz

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

Super User

Hi,

I am not sure if I completely understood what you are trying to do. Nevertheless since you are trying to calculate change from one quarter to another I recommend using Quarter time intelligence functions such as DATESQTD and the ones seen in the picture below:

If possible I would recommend creating a calculation group with the following pattern:

Calculate(selectedmeasure(), DATESQTD('Calendar'[Date])

I hope these tips help you solve your challenge and if they do consider accpeting this as a solution!

Proud to be a Super User!

Announcements

#### The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

#### Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!