Forum Discussion
Need Point in Time Last Invoice Amount
- 5 years ago
Step 1---Create a bridge table with unique user id
Step 2 --Create a calculated colum in the Active user table
Pending Invoice last month =LOOKUPVALUE('Invoice data'[Invoice Amount],'Invoice data'[Date],DATEADD('Active User'[Date],-1,MONTH))Step3----pull the highlighted fields in a tableā
Note: it is not showing the Feb value for user 126389 because there is no data in the active user table , you can work on the source , but hope you got the context.
Rergards
Vpanchu
Create a calculated column in your "Active user" table as below:
Point of Time Invoice Last Invoice=
LOOKUPVALUE(Invoice_Data[Invoice Amount],Invoice_Data[Date],DATEADD(Active_Users[Date],-1,MONTH))
Make sure you have created relationship between the tables on the userID.
Please let me know if this solves.
- shanipowerbi5 years agoHelper III
Thanks for the help, how can I make the relationship as you can see both tables have multiple User IDs of the same User.
- mhossain5 years agoSolution Sage
- vpanchu5 years agoHelper I
Step 1---Create a bridge table with unique user id
Step 2 --Create a calculated colum in the Active user table
Pending Invoice last month =LOOKUPVALUE('Invoice data'[Invoice Amount],'Invoice data'[Date],DATEADD('Active User'[Date],-1,MONTH))Step3----pull the highlighted fields in a tableā
Note: it is not showing the Feb value for user 126389 because there is no data in the active user table , you can work on the source , but hope you got the context.
Rergards
Vpanchu
- shanipowerbi5 years agoHelper III
Hi vpanchu
Thanks It's working but the problem I am facing is it's taking too much time for calculation. I have data from 2018 and each day I get around 24K rows in Active data and increasing with business. Is that any optimize way to get this data?
Regards
Shan