Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello everyone,
I looking for some help.
In my dataset I have 1 colum with a "create date" and 2 other colums "current" and "New". (This are serialnumbers.)
When In the table "current" a same number exist in the colum "New" I need to calculate the amount of days between the different days.
Anyone any idea to solve this?
Thnx.
Jeffrey
Solved! Go to Solution.
Hi,
You can try this:
Create a Calculated Column for the Matching Serial Numbers: First, create a calculated column to identify the matching serial numbers between the “current” and “new” columns.
MatchingSerial =
IF(
'Table'[current] IN VALUES('Table'[new]),
'Table'[current],
BLANK()
)
Create a Calculated Column for the Create Date of the Matching Serial Numbers: Next, create a calculated column to get the create date for the matching serial numbers.
MatchingCreateDate =
CALCULATE(
MAX('Table'[create date]),
FILTER(
'Table',
'Table'[new] = EARLIER('Table'[current])
)
)
Create a Calculated Column for the Number of Days Between Dates: Finally, create a calculated column to calculate the number of days between the create dates.
DaysBetween =
DATEDIFF(
'Table'[create date],
'Table'[MatchingCreateDate],
DAY
)
Proud to be a Super User! | |
Hi,
You can try this:
Create a Calculated Column for the Matching Serial Numbers: First, create a calculated column to identify the matching serial numbers between the “current” and “new” columns.
MatchingSerial =
IF(
'Table'[current] IN VALUES('Table'[new]),
'Table'[current],
BLANK()
)
Create a Calculated Column for the Create Date of the Matching Serial Numbers: Next, create a calculated column to get the create date for the matching serial numbers.
MatchingCreateDate =
CALCULATE(
MAX('Table'[create date]),
FILTER(
'Table',
'Table'[new] = EARLIER('Table'[current])
)
)
Create a Calculated Column for the Number of Days Between Dates: Finally, create a calculated column to calculate the number of days between the create dates.
DaysBetween =
DATEDIFF(
'Table'[create date],
'Table'[MatchingCreateDate],
DAY
)
Proud to be a Super User! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
17 | |
12 | |
11 | |
8 | |
8 |
User | Count |
---|---|
24 | |
13 | |
12 | |
11 | |
10 |