Forum Discussion
cuongtrinh2197
2 years agoFrequent Visitor
Need urgent help please!!!
Hi, can someone show me the way to bring the field Customer part number to the visual table? My relationship looks fine but the error happened when I tried to bring the customer part number to th...
- 2 years ago
pls see if this is what you want
Measure =VAR _cpn=maxx(FILTER(fCustProduct,fCustProduct[Part number]=max(fSales[Part number])&& fCustProduct[Customer]=max(fSales[Customer])),fCustProduct[Customer Part Number])return if (_cpn="",max(fSales[Part number]),_cpn)
ryan_mayu
Super User
2 years agopls try this
Measure = maxx(FILTER(fCustProduct,fCustProduct[Part number]=max(fSales[Part number])),fCustProduct[Customer Part Number])
cuongtrinh2197
2 years agoFrequent Visitor
Ryan, the measure return the wrong value
- ryan_mayu2 years ago
Super User
pls see if this is what you want
Measure =VAR _cpn=maxx(FILTER(fCustProduct,fCustProduct[Part number]=max(fSales[Part number])&& fCustProduct[Customer]=max(fSales[Customer])),fCustProduct[Customer Part Number])return if (_cpn="",max(fSales[Part number]),_cpn)