Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi everyone,
I'm on a Power BI project needing me to use the LOOKUPVALUE function (I guess)
For example I have:
TABLE 1:
Code_t1 Value Date
A100 100 09/2019
A200 200 09/2019
A100 110 10/2019
A200 210 10/2019
...
TABLE 2:
Code_t2 resultColumn
A100
A100
A100
A100
The goal of the project is to convert an old Excel file used as reporting into a power BI Project.
datas are collected every months on last day.
I have the following formula in resultColumn:
It's working when each Code are unique in Table1, but not with identical values (when we have 2 or more months),
Hi
you can try the following
Add a calculated column on table2
Latest Result =
VAR Current_Code = Table2[Code_t2]
return CALCULATE(sum(Table1[value]), FILTER(Table1, Table1[Code_t1] = Current_Code))
Let me know if it works
Tomas
Hello Tomas,
Thanks you for your answer,
Your function is correct and give me a value wich is the SUM of Value month 1 +Value month 2,
I think I was not working in the right way using column ^^
Is it possible in a measure to filter on date and choose what value to display depending on the date ?
I tried something like this:
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |