Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello I have a table in which several incoming documents (from the customer) and several outgoing latters (from the company) are included for customers. I would like to calculate the average time difference between the youngest date of receipt (document receipt) and the oldest date of issue (of the letters) for each customer. Can anyone help here?
@Jul1An No sample data so hard to know exactly what the DAX would be but I answered a very similar question here: YTD Change - Microsoft Power BI Community
@Jul1An Try:
Measure =
VAR __ID = MAX('Table'[Customer-ID]
VAR __MinDate = MINX(FILTER('Table', [Customer-ID] = __ID), [Date of receipt])
VAR __MaxDate = MAXX(FILTER('Table', [Customer-ID] = __ID), [Outgoing Date])
VAR __Result = ( __MaxDate - __MinDate ) * 1.
RETURN
__Result
Thanks that helped a lot @Greg_Deckler. One last question on the topic... How must your __Result variable be changed if there is also the case that a letter was sent before an inbox and this constellation should be hidden/ ignored? Can you help here as well?
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
64 |
User | Count |
---|---|
135 | |
122 | |
101 | |
71 | |
61 |