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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
markyochoa
Helper I
Helper I

Column that compares a row value with an absolute value based on another column

This probably isn't too complicated but I'm not sure how to do this. Here are the relevant measures/columns/tables:

 

Example Table1:

DealNumberOwnerDaysOpen
123Mark35
124John40
125Mark50
126John125

 

Measures (already created):

AbsoluteAVGD2C = Gives me the absolute value of the Owner's average deal days2close. It ignores any date filters.
 
I want to create a column that will compare the DaysOpen column against that Owner's AbsoluteAVGD2C value so I can see if the deal has been open too long based on the person.
 
So for instance, given Mark and John's ABS AVG of 90 and 120 respectively, I should get this:
 

Example Table2:

DealNumberOwnerDaysOpenStatus
123Mark35Good
124John40Good
125Mark50Good
126John125TooLong

 

The general logic is probably something like IF(DaysOpen < AbsoluteAVGD2C, "Good", "TooLong"), but I can't figure out how to make sure the AbsoluteAVGD2C measure in this foruma is specific to the owner. 

1 ACCEPTED SOLUTION
rohit_singh
Solution Sage
Solution Sage

Hi @markyochoa ,

Assuming you have already created the measure to calculate average, please try this :

rohit_singh_0-1655285100851.png

Status =

var _avg = [AbsoluteAVGD2C]

RETURN
IF(SUM(AvgDaysOpen[DaysOpen]) < _avg, "Good", "TooLong")

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @markyochoa ,

Has your problem been solved by @rohit_singh 's solution? If so, would you mind accept his reply as solution?

If not, please feel free to let me your needs.

Best Regards,
Community Support Team _ kalyj

rohit_singh
Solution Sage
Solution Sage

Hi @markyochoa ,

Assuming you have already created the measure to calculate average, please try this :

rohit_singh_0-1655285100851.png

Status =

var _avg = [AbsoluteAVGD2C]

RETURN
IF(SUM(AvgDaysOpen[DaysOpen]) < _avg, "Good", "TooLong")

Kind regards,

Rohit


Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

Thanks! Sorry for the very late reply.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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