Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |