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.
I am working with the following two tables:
Time | Stage | Value1 | Value2 |
5/22/2020 13:01:15 | 1 | ||
5/22/2020 13:02:15 | 1 | ||
5/22/2020 13:03:15 | 1 | ||
5/22/2020 14:01:15 | 2 | ||
5/22/2020 14:02:15 | 2 |
Stage | Start | End |
1 | 5/22/2020 13:01:15 | 5/22/2020 13:03:15 |
2 | 5/22/2020 14:01:15 | 5/22/2020 14:02:15 |
These tables are realted via stage number. For table 2, where I am having issues is calculating the Start and End Time. For start time, it needs to filter data 1 by corresponding stage and find the first time.
I have tried the following DAX expression, but am getting odd results:
Start = CALCULATE(FIRSTDATE(ParameterValues[date].[Date]),USERELATIONSHIP(ParameterValues[stageId],Stages[_id]))
Every row is returning 1/1/2020 12:00:00 AM for start and 12/31/2020 12:00:00 AM for end, but neither of these values are in the table.
Im sure I am making a simple mistake, but have been stuck and cannot get it figured out. Thank you in advance for the help!!
Solved! Go to Solution.
@att9728 , Not very clear, Both as a new column in table 2
start Time table 2 = minx(filter(table1,table1[Stage] =table2[Stage]),table1[Time])
End Time table 2 = maxx(filter(table1,table1[Stage] =table2[Stage]),table1[Time])
@att9728 , Not very clear, Both as a new column in table 2
start Time table 2 = minx(filter(table1,table1[Stage] =table2[Stage]),table1[Time])
End Time table 2 = maxx(filter(table1,table1[Stage] =table2[Stage]),table1[Time])
Thank you for this! This is the answer.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
139 | |
86 | |
64 | |
47 | |
44 |
User | Count |
---|---|
211 | |
83 | |
76 | |
61 | |
53 |