Forum Discussion
francino
5 years agoFrequent Visitor
Count products below a user defined threshold
I am having trouble with getting a count of products below a user selected threshold. Here is the scenario. I have a table with products and their respective sales: I calculate the averag...
- 5 years ago
francino , Try measure
GT Threshold =
var _t = calculate([Threshold], allselected(Table))
return
countx(values(table[product]), if([sales] > _T,[product], blank()))Below Threshold =
var _t = calculate([Threshold], allselected(Table))
return
countx(values(table[product]), if([sales] <_T,[product], blank()))
amitchandak
5 years agoSuper User
francino , Try measure
GT Threshold =
var _t = calculate([Threshold], allselected(Table))
return
countx(values(table[product]), if([sales] > _T,[product], blank()))
Below Threshold =
var _t = calculate([Threshold], allselected(Table))
return
countx(values(table[product]), if([sales] <_T,[product], blank()))