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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
yakolev19
Regular Visitor

Last 3 months condition to aggregate

Hi, I have a dataset that list a series of phone numbers containing costs per month and forwarded calls (among other fields/columns).

 

I'm trying to come up with a measure that aggregates values in cost column for any given phone number that has had < 6 forwarded calls in any given month (or row), during the last 3 months.

 

Any ideas of how this can be achieved?

 

Thanks in advance,

2 REPLIES 2
VijayP
Super User
Super User

@yakolev19 

to get clarity of your query , a sample data helps and what outcome you want as a snapshot




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hi VijayP,

 

Apologies,

 

Below I've included some additional details. The point of the measure is to flag accounts with low volume of calls that can potentially be cancelled, and costs cut-off resulting in savings.

 

The second T/F table is just to help visualise better the steps that the measure would step through in arriving at the correct figures.

 

The idea is to put the measure in a matrix table that only reports on these phone/account numbers and ignores the rest - providing a total at the bottom with the potential cost savings.

 

 

yakolev19_1-1670324028720.png

 

 

 

 

Table for easy copy and pasting:

DatePhone NoCalls MadeCost $

Aug-22***10015$7.50
Aug-22***10027$10.50
Aug-22***10032$3.00
Aug-22***10041$1.50
Aug-22***10059$0.00
Sep-22***10018$12.00
Sep-22***10022$0.00
Sep-22***10034$6.00
Sep-22***10041$1.50
Sep-22***10057$10.50
Oct-22***10016$9.00
Oct-22***10025$7.50
Oct-22***10031$1.50
Oct-22***10044$6.00
Oct-22***10056$0.00
Nov-22***10018$12.00
Nov-22***100210$15.00
Nov-22***10037$10.50
Nov-22***10049$13.50
Nov-22***10052$3.00

 

 

Thanks so much in advance!

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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