I need your advice how to edit the query.
I received the table as excel file as below.
Date (Day/Month/Year) A (order) B(order) C(order)
1/1/2021 88 570 183
1/2/2021 86 550 170
1/3/2021 80 550 100
This table shows the "number of the products (A, B and C) for daily order".
Hence the number of products, which are written in the column at 1/1/2021, equals the number of products will be ordered everyday from 1st January 2021 to 31st January 2021.
I would like to edit the table by Power BI query as below.
The numbers of daily order will be written in each day.
Would you mind telling the method how to edit ?
I don't want to edit the excel file and hope to complete the edition of the table in query.
2/1/2021 88 570 183
31/1/2021 88 570 183
2/2/2021 86 550 170
28/2/2021 86 550 170
2/3/2021 80 550 100
Go to Solution.
PFB the attachment for reference.
Accept solution if it resolves your requirement.
daily order products.pbix
View solution in original post
For your case, you could use solution as labuser1235 provided, and you'd better add a year column and in the two tables and add this conditional in LOOKUPVALUE Function.
Thank you for your advice.
Your editted query is useful.
However "lookupvalue" function was not recognized in my Power BI...
Anyway thank you for your support.
In my Power BI, lookupvalue function was not recognized...
I will check it again.
And I will check the site which you told the link.
Do you need help in Spanish? Check out our new Spanish community section.