Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I am trying to get a value multiplied based on which year is shown in a graph.
Somewhat simplified. I have 3 tables, Data, calenderdateTime and LookUp.
Data and CalenderDateTime are connected via timestamps, but LookUp is independent.
It is the value "Add value" in the LookUp table that must change based on the year and then multiplied by the Value from the Data table.
I can't figure it out. Hope someone can help.
Thanks in advance
Solved! Go to Solution.
Hi @M-M-P
You can refer to the following example:
1.you can creata a new measure:
Output = var _look=MAXX(FILTER(Lookup,[Year]=YEAR(MAX('Calenderdate Time'[Tamestamp]))),[Add value])
return MAX(Data[Value])*_look
2.You can create a calculated column
vaule*lookup = var _lookaddcalue=LOOKUPVALUE(Lookup[Add value],[Year],YEAR([Tamestamp]))
return [Value]*_lookaddcalue
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @M-M-P
You can refer to the following example:
1.you can creata a new measure:
Output = var _look=MAXX(FILTER(Lookup,[Year]=YEAR(MAX('Calenderdate Time'[Tamestamp]))),[Add value])
return MAX(Data[Value])*_look
2.You can create a calculated column
vaule*lookup = var _lookaddcalue=LOOKUPVALUE(Lookup[Add value],[Year],YEAR([Tamestamp]))
return [Value]*_lookaddcalue
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@M-M-P , You can create a new column in data table
maxx(filter(lookup, lookup[Year] = year(Data[timestamp]) ), lookup[Add Value])
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |