Forum Discussion
sunah132
Helper I
5 years agoRank and Partition
I have a list of items with pricing as value by delivery date. Because the direct query data has multiple duplicated entries per items, the row subtotal shows 10X more than what it should be. If I cr...
sunah132
Helper I
5 years agoThank you, I have attached a new example about this.
ryan_mayu
Super User
5 years agoyou can try this
Measure 2 =
var TBL=SUMMARIZE('Sheet1',Sheet1[Date],Sheet1[Item],Sheet1[Item code],"min",min(Sheet1[Item Cost]))
RETURN SUMX(TBL,[min])
please see the attachment below
- sunah1325 years ago
Helper I
Thank you!! It applied as I was expected!
If there's a miscellaneous cost on every Wednesday per item code, may I add like this?
var TBL=SUMMARIZE('Sheet1',Sheet1[Date],Sheet1[Item],Sheet1[Item code],"min",min(Sheet1[Item Cost],(sheet1[Misc cost])) RETURN SUMX(TBL,[min])