Forum Discussion
Anonymous
2 years agoNot applicable
Approximating benchmark line in combo chart
I have a combo chart with 2 axis. On the bar axis, I have total score, and on the line chart, I have total sales. I added a "benchmark" value (85%) to the grouped bar chart, but the user wants th...
- Anonymous2 years ago
I was able to figure out a measure applying the max sum by vendor to to each vendor:
MaxAmountByVendor = VAR yearBeginning = DATE(YEAR(MIN('PurchaseInvoiceLine'[PostingDate])), 1, 1) VAR periodEnd = MAX('Date'[Date]) var maxamount = MAXX( GROUPBY( FILTER( ALL('PurchaseInvoiceLine'), 'PurchaseInvoiceLine'[PostingDate] >= yearBeginning && 'PurchaseInvoiceLine'[PostingDate] <= periodEnd ), 'PurchaseInvoiceLine'[VendorNo], "MaxAmount", SUMX(CURRENTGROUP(),'PurchaseInvoiceLine'[Amount]) ),[MaxAmount] ) return maxamount
Daniel29195
Community Champion
2 years agoAnonymous
output :
you can try this :
in the upper and lowerbound you drag and drop the column : benchmark 85% .
you can even change its color .
If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution ✅!
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠