The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I'm looking to get data from one table to another, but it's from the many-side of a many-to-one relation.
I have two tables.
Table 1 (1-side)
Table 2 (n-side)
While retrieving the data I'm seeking to calculate two columns in table 1.
Meanwhile I need the Timestamps to be present for all Machines used for each Prod No.
So I'm looking for Table 1 to look like shown below:
I appreciate any help! Thanks!
Solved! Go to Solution.
@CRN try these 2 calculated columns in table 1:
Earleist Start =
CALCULATE(
MIN('Table2'[Timestamp]),
'Table2'[Timestamp Code] ="Start",
ALLEXCEPT('Table1', 'Table1'[Prod No])
)
Latest End =
CALCULATE(
MAX('Table2'[Timestamp]),
'Table2'[Timestamp Code] ="End",
ALLEXCEPT('Table1','Table1'[Prod No])
)
@CRN try these 2 calculated columns in table 1:
Earleist Start =
CALCULATE(
MIN('Table2'[Timestamp]),
'Table2'[Timestamp Code] ="Start",
ALLEXCEPT('Table1', 'Table1'[Prod No])
)
Latest End =
CALCULATE(
MAX('Table2'[Timestamp]),
'Table2'[Timestamp Code] ="End",
ALLEXCEPT('Table1','Table1'[Prod No])
)
@CRN my pleasure 🙂
Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas.
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |