Decision table (without nested IFs or Power Query)

Iron Contributor

I have a decision table (general info here) that I would like to use in Excel.

I know how to implement it using  nested IFs or Power Query, but is there a simple and efficient way without these? By using some other smart setup or strategy?

Simplified example attached.

bartvana_0-1635072738067.png

 

 

4 Replies

@bartvana Would you mind explaining the logic behind the result table?

Yes, of course.

The decision table reads like this:

  • if MulOfVol = 1, then ID 1 (the other parameters are irrelevant in this row, that's why they are empty)
  • if MulOfVol = 0 and Custom = 1, then ID 2
  • ...
  • if SKUCrit01Fail = 1 and SKUCrit02Fail = 1 and SKUCrit03Fail = 1, then ID 5

Based on the fact table, I need to fill in the corresponding decision ID for each SKU.

(I just noticed an error in my decision table, corrected file attached, I'll also correct my initial post).

So SKU1 gets decision ID 1 because MulOfVol = 1.

SKU03  gets decision ID 7 because its parameters correspond with this row (where empty fields are irrelevant).

@bartvana I gladly leave it to someone else.

@bartvana 

 

Nothing is simple in excel, however you can setup a data model and use measures either in power pivot or Power-Bi to generate your dashboard or report to get the desired results.