Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello! I could use some assistance with an issue I've been facing. I need to have a number range slicer based on feet (1 - 5280) when selected a number/foot it will filter the visual and show the correct Cost Per Feet from the measure. I am not sure how to handle this and be able to have it properly filter the visual to show the selected number of feet from the slicer.
Number Range
FeetRange = GENERATESERIES(1,5280,1)
Cost Per Feet Measure
CPF = CALCULATE(DIVIDE([SumLabor_Materials],[SUM_Feet]),FILTER('Labor_Merged','Labor_Merged'[Asset Category] in {"NATURAL SURFACE TRAIL","HARD SURFACE TRAIL"}))
Hi @Anonymous
I don't 100% understand what you want to have. What do the measures [SumLabor_Materials] and [SUM_Feet] calculate for? Will they be filtered by the number range slicer? Maybe you can use some simple dummy data to explain your issue more intuitively?
Regards,
Community Support Team _ Jing
@Anonymous , Try a new measure on CPF
CPF Filtered =
var _min = minx(allselected(FeetRange ),FeetRange [value])
var _max = maxx(allselected(FeetRange ),FeetRange [value])
return
calculate([CPF], filter(Values(Table[Asset category]), [CPF]>=_min && [CPF] <=_max))
Hello,
Thanks for the quick response and help! I did try to use the new measure but it still doesnt seem to be working correctly. It removed one of the categories and does not change the cost, only stays static when changing the slicer.
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
136 | |
117 | |
101 | |
71 | |
61 |