Skip to main content

My data looks like this (blended):

 

Source1.Item

 

Source1.OrderID

 

Source1.Requestedcount

 

Source3.ReplacementsourceSource2.AcceptedReplacementcountSource1.Department

 

Apple110Shopper10FruitCucumber21Machine0VeggiesCucumber35Shopper0Veggies

 

I want to calculate the Acceptance% (acceptedreplacementcount/requestedcount), by department, item name, and replacementsource. I created one of these calculations each for Shopper and Machine:

 

IF  ATTR([Substitutions_Shopper_Behavior].[Replacementsource]) = 'Shopper'

THEN zn([AcceptedReplacementcount/Requestedcount])

ELSE NULL END

 

When I create the view with departments and item names in rows, I get no results for cucumbers since there is more than one replacement source. I only get results if all records for a given department/item are from the same source. How do I fix this?

1 answer
  1. May 4, 2019, 12:27 AM

    Hi, Anita

     

    Data blend is complicated, it depends on the keys and how you build the relationship. If you can privot a sample workbook, will be easier to have a look, and meanwhile, is it possible to join your data rather than blend?

     

    ZZ

0/9000