Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi PBI folks!
I'm trying to figure out a measure to calculate the average price, on the last date available for two specif IDs (ID_SPOT=30 and ID_TIPO_VALOR=8).
The table is:
And my output should be the average of column VALOR, for the latest date where the previous IDs were filtered (ID_SPOT=30 and ID_TIPO_VALOR=8).
Can you help me out, please?
Thanks!
Cheers
Solved! Go to Solution.
@Anonymous , try new measure like
measure =
var _max = maxx(filter(allselected(Table),Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8), [Data_cotaCAO])
return
AverageX( filter(Table,Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8 && table[Data_cotaCAO] =_max ), [Valor])
or
measure =
var _max = maxx(filter(allselected(Table),Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8), [Data_cotaCAO])
return
AverageX( filter(allselected(Table),Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8 && table[Data_cotaCAO] =_max ), [Valor])
@Anonymous , try new measure like
measure =
var _max = maxx(filter(allselected(Table),Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8), [Data_cotaCAO])
return
AverageX( filter(Table,Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8 && table[Data_cotaCAO] =_max ), [Valor])
or
measure =
var _max = maxx(filter(allselected(Table),Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8), [Data_cotaCAO])
return
AverageX( filter(allselected(Table),Table[ID_SPOT]=30 && Table[ID_TIPO_VALOR]=8 && table[Data_cotaCAO] =_max ), [Valor])
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
87 | |
80 | |
69 | |
69 |
User | Count |
---|---|
226 | |
129 | |
119 | |
83 | |
77 |