Forum Discussion

rjsidek's avatar
rjsidek
Helper II
6 years ago

Getting Average based on Latest entry

Hi everyone,

I have a dataset that looks like this

 

What I am trying to do is create a measure in PowerBI to get the Average Deal Size for a company. Basically taking Deal Size min+ deal size max and dividing by 2. However, note that there are multiple entries in the deal size columns, meaning that these deal sizes change over time. I want to create an average measure that takes the latest entries by date. It gets more complicated because there might e circumstances where only one of the deal size comuns are filled ie. there is a value in deal size max but none in deal size min.

 

Is there a measure I can use to solve this issue? Have been tring to crack this for days now. Please help if you can.

 

amitchandak parry2k 

7 Replies