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
katherinedelva
New Member

Create to segmentation with measue (numeric)

I want to create a segmenter with a measure (price) that I have created which has millions of records. How can I make it so that I can bring only the values ​​I want to the SalePrice filter?
It won't let me include it in the segmenter.

 

Captura.PNG

 

 

 
1 REPLY 1
amitchandak
Super User
Super User

@katherinedelva , You need to use numeric parameter or create dynamic segemetantation

 

With numeric of what is parameter or using generateseries create a table

 

Bucket = generateseries(0, 2000, .01)

 

But this going to too many values

 

Then you can have measure like

 

Measure =

new measure =
var _max = maxx(allselected(Bucket ),Bucket [value])
var _min = minx(allselected(Bucket ),Bucket [Date])
return
calculate( Sumx(filter(Values('Table' [Nonbre]), [Price] >=_min && [Price]<=_max))

 

 

Assuming the price is a measure

 

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

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.