March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello, i need to create a check mark for the products recommendation, and this i have tried, with IFs, SUMMARY and calculated tables but with no satisfying results. Here are my tables (note that the grades have different scales so they need to be put separately)
Table 1
A=high, D=low | |||
product id | grade 1 | qty 1 | check |
1 | A | 0 | |
1 | B | 1 | |
1 | C | 2 | x |
1 | D | 3 | x |
2 | A | 1 | |
2 | B | 2 | x |
2 | C | 0 | |
2 | D | 1 |
Table 2
A=high, C=low | |||
product id | grade 2 | qty 2 | check |
1 | A | 0 | |
1 | B | 4 | x |
1 | C | 1 | |
2 | A | 1 | |
2 | B | 3 | x |
2 | C | 2 | x |
Expected outcome:
product id | recommendation |
1 | yes |
2 | no |
Explanation:
product 1 is recommended because we have in table1 (so we need to get the 2 highest categories taking into account that A is high and D the lowest) grades C and D where quantity is > 2 as the first condition and in table 2 we have at least 1 category with qty > 2 (as the second condition, it can be 1 or more).
product 2 is not recommended because we only have one category in table 1 with qty > 2 and that doesn't quality.
Thanks very much
Solved! Go to Solution.
@PatrickNahayo , First we need to create to calculated column for check in Table 1 and 2
For table 1
Proud to be a Super User! |
|
@PatrickNahayo , First we need to create to calculated column for check in Table 1 and 2
For table 1
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
18 | |
15 | |
9 | |
8 |
User | Count |
---|---|
37 | |
32 | |
18 | |
16 | |
13 |