cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AA622
Helper I
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
ValtteriN
Super User
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:

ValtteriN_0-1639437803145.png


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

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

Additionally you can apply the previous logic directly into your measures. 

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







Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @AA622 ,

 

Has your problem been solved? If it is solved, please mark a reply which is helpful to you.

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.

 

vkkfmsft_0-1639644469991.png

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

vkkfmsft_0-1639644632832.png

 

Best Regards,
Winniz

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

ValtteriN
Super User
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:

ValtteriN_0-1639437803145.png


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

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

Additionally you can apply the previous logic directly into your measures. 

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







Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

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

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

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

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors