Forum Discussion
CasperSV
2 years agoHelper II
Revenue score between two parameters from another table
Hi guys, I am trying to add a score (from parameters in another table) based on the expected year revenue. Current result in Matrix: Expected result: Dataset, Table Param...
- 2 years ago
Hi,
Write this calculated column formula in the Revenue table
Score = CALCULATE(MAX('Score parameters'[Score]),FILTER('Score parameters','Score parameters'[Item category]=EARLIER(Revenue[Item category])&&'Score parameters'[Revenue min]<=Revenue[Expected year revenue]&&'Score parameters'[Revenue max]>=Revenue[Expected year revenue]))Write this measure and drag it to the visual
S = MAX(Revenue[Score])Hope this helps.
CasperSV
2 years agoHelper II
Hi Ashish_Mathur and lbendlin ,
Thank you for the reply, hereby the link to the report:
Expected result:
| Customer | Item category | Expected year revenue | Score |
| Alex | Total | 2.342,86 | |
| Chair | 457,14 | A | |
| Plate | 685,71 | Z | |
| Spoon | 628,57 | A | |
| Table | 571,43 | Z | |
| Mike | Total | 3.085,71 | |
| Chair | 800,00 | A | |
| Plate | 857,14 | Z | |
| Spoon | 514,29 | Z | |
| Table | 914,29 | A |
Thank you for the help.
Best regards,
Casper
- Ashish_Mathur2 years agoSuper User
Hi,
Write this calculated column formula in the Revenue table
Score = CALCULATE(MAX('Score parameters'[Score]),FILTER('Score parameters','Score parameters'[Item category]=EARLIER(Revenue[Item category])&&'Score parameters'[Revenue min]<=Revenue[Expected year revenue]&&'Score parameters'[Revenue max]>=Revenue[Expected year revenue]))Write this measure and drag it to the visual
S = MAX(Revenue[Score])Hope this helps.
- CasperSV2 years agoHelper II
Ashish_Mathur Thank you so much!
- Ashish_Mathur2 years agoSuper User
You are welcome.