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.
Hello everyone.
for your help with the following:
I have a table with transactions of income and exit and I intend to identify of all the records that are made those who have not yet left, investigating I saw that the SUMMARIZE function, it was useful for me to group the records by ID with the maximum date for each ID for the most recent record.
Table created.
TABLE1 = SUMMARIZE('Consolidated', 'Consolidated'[ID], "Date",MAX('Consolidated'[Date]))
To this table I am trying to make a "Lookupvalue", which allows me to bring the last transaction (Entry or Exit) passing an additional meter to the formula (Table 1.Date and Table 2.Date.
LOOKUPVALUE(Table1[Transaction],
Tabla1[ID],Tabla2[ID],
Table1[Date],Table2[Date])
But I get the following error message "A multi-valued table was provided where a single value was expected" was provided.
Please your guidance on how I can solve this error or how I can achieve what I want to do, thank you very much.
@Syndicate_Admin , try new column like
MAxx(filter(Table1,
Tabla1[ID],Tabla2[ID],
Table1[Date],Table2[Date]), Table1[Transaction])
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
88 | |
71 | |
48 | |
46 |