Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Selected number range need to filter measure and visual

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"}))

 

 

 

trailsvisual.PNG

trails.PNG

3 REPLIES 3
v-jingzhang
Community Support
Community Support

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

amitchandak
Super User
Super User

@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))

Anonymous
Not applicable

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. 

 

trailresults.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.