Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Group values together based on field value and create new combined value

Hi looking for a way to do this without creating a separate Table or a calculated Column. But looking for way to create a Measure that would combine a Sales Category for only certain Customers into a new combined value. See below, Lets lets say Customer Bill Gates has sales in multiple Sales Category and I'm looking to create a Measure that says" If Customer="Bill Gates" then combine Sales Category, else show Sales Category. So looking for 1. Ability to statically enter Certain\multiple  Customers to apply this to 2. Ability to statically list certain\multiple Sales Categories that I want to combine and the other Sales category will just be listed as normal.  3. Name this new comobined value any name that I want. Anyone have any ideas on how to do this with a measure? See example below. 

 

Before results:

CustomerSales CategorySales$
Bill GatesSoftware1,000
Bill GatesHardware500
Bill GatesInternet200
Bill NineScience200
Tiger WoodsGolf99999
Tiger WoodsPromo5

 

Expected Results: ( I would put in the Measure 2 things, Customer Name = "Bill Gates", and Sales Category to combine = "Software" and "Hardware" ) and have the new Combined Value be called "Combined" 

CustomerSales CategorySales$
Bill GatesCombined1,500
Bill GatesInternet200
Bill NineScience200
Tiger WoodsGolf99999
Tiger WoodsPromo5

10 Replies