Quantcast
Viewing all articles
Browse latest Browse all 217217

How to group data into buckets with a measure

Is it possible to group data into price buckets without using a calculated column? 

I have a list of prices and I'd like to write a measure that indicates what "price bucket" they fall in.

Image may be NSFW.
Clik here to view.
Pirce_buckets.png
Image may be NSFW.
Clik here to view.
Price_List.png

I've tried : 

Price Bucket:=Calculate( LASTNONBLANK(VALUES(Price_Bucket[Price_Bucket]), 1), FILTER(Weekly_Trades, [Pricet]<= [Price Bucket Max] && [Pricet]>[Price Bucket Min]))

 

Where pricet:=Pricet:=MAX(Weekly_Trades[PRICE])

Price Bucket Min:=MIN(Price_Bucket[Min])

Price Bucket Max:=MAX(Price_Bucket[Max])

 

 

But as you can see, it only identifies the price bucket if the price equals the max for the price bucket range. 


Viewing all articles
Browse latest Browse all 217217

Trending Articles