I have further developed your concept “treshold trigger” for a product rating (fast seller). For a differentiated evaluation of the products I have different threshold values for different product groups. In my example I have a threshold value at KPI LUG 3.7 for the product groups Tops all articles above this value should be displayed. Since several categories apply to the product group Tops, I combined this via Selectedvalue and OR Statement. However, I still see articles below the threshold value. What is your idea and why?
The way to think about it is to narrow down on one specific result you don’t think it right and then work through your formula slowly and see where the logic isn’t working properly.
Potentially there is a small operator not around the correct way, or that particularly result isn’t being captured at all within your formula logic.
Another strategy would be to filter the table down more so you are just reviewing a couple of items. This makes it easier on the mind when reviewing complex formulas.
If you can find out the issue with only just one result here you will figure out what’s going on quite fast. So really drill into one result and work through your formula that way.
Hey Sam, I’ve tested a bit further and the measure and logic of the trigger work but there’s a problem with the multiple or statements per main product classification Outerwear | Trousers | Tops. Here’s my test: if I only use OR in this example //Target Metric HAKA Tops in a switch statement with selectedvalue the logic works and only values above the threshold are displayed.
If I use OR in several Switch Statements with selectedvalue this example //Target Metric HAKA Outerwear and //Target Metric HAKA Tops the logic does not work and values below the threshold value are displayed again.
Hi Sam, I have found the solution. As often by so complexe themes it was quiet easy. My OR Statement was not correct an i have change the dimension context in the selectedvalue statement. Have a look at my changes.
The old one: SELECTEDVALUE('Main product group'[Main Product Group ID])=1100 || 1101 || 1102 || 1103
The new one: I have change from the dim table to the fact table SELECTEDVALUE('Sales seasonal product'[Main Product Group ID])=1100 || SELECTEDVALUE('Sales seasonal product'[Main Product Group ID])=1101 || SELECTEDVALUE('Sales seasonal product'[Main Product Group ID])=1102 || SELECTEDVALUE('Sales seasonal product'[Main Product Group ID])= 1103
It works fine, but the operations are quiet hard, so the performance is very slow and power bi gives me sometimes an error. “My Memory is not enough”
Do you have an idea, how i can boost the performance or reduce the operations in the formula?