Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
135 | |
105 | |
104 | |
80 | |
65 |