The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
So I have this DAX formula below. In the LOOKUPVALUE function I need to lookup the values in the Ticker column in the variable InvestmentMixTable. This syntax doesn't work InvestmentMixTable[Ticker]. I am trying to reference a column in a table variable. How is this done? Thanks in advance.
=
VAR CurrentYear = Custom_Mix_Tbl_Annual_Return[Year]
VAR InvestmentMixTable = FILTER ('Custom_Mix_Tbl Unpivoted',[Investment Mix] = Custom_Mix_Tbl_Annual_Return[Name])
RETURN
Iferror(SUMX (
InvestmentMixTable,
LOOKUPVALUE (
Appended_Historical_Annual_Returns[Annual Return],
Appended_Historical_Annual_Returns[Ticker],
InvestmentMixTable[Ticker],
Appended_Historical_Annual_Returns[Year],
CurrentYear
)
* [Value]
),Blank())
@shoof MAXX( FILTER( ... ), [Column] )
So are you saying to replace the lookupvalue completely? Or do this...
Maxx(Filter( InvestmentMixTable),[Ticker]))
The Ticker column is Text. Don't know if that matters.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
80 | |
78 | |
47 | |
39 |
User | Count |
---|---|
148 | |
115 | |
65 | |
64 | |
53 |