The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, could you help me with this problem? I have a sales list where the product sold is specified with an id, I want to know the name of the best-selling product. That is to say that once the fashion is found (it can be more than one) in the sales table, I need that id to be related to the table of products that has the id and the name, to obtain from this the name that has to be entered in a text.
Thanks a lot!
Solved! Go to Solution.
Hi @Syndicate_Admin ,
I created some data:
Table1:
Table2:
Here are the steps you can follow:
1. Create measure.
Flag1 =
SUMX(
FILTER(ALL('Table'),'Table'[ID]=MAX('Table'[ID])),[Value])
Flag2 =
var _max=
MAXX(
ALL('Table'),[Flag1])
return
IF(
[Flag1]=_max,
MAXX(FILTER(ALL(Table2),'Table2'[ID]=MAX('Table'[ID])),[Product]),BLANK())
2. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Syndicate_Admin ,
I created some data:
Table1:
Table2:
Here are the steps you can follow:
1. Create measure.
Flag1 =
SUMX(
FILTER(ALL('Table'),'Table'[ID]=MAX('Table'[ID])),[Value])
Flag2 =
var _max=
MAXX(
ALL('Table'),[Flag1])
return
IF(
[Flag1]=_max,
MAXX(FILTER(ALL(Table2),'Table2'[ID]=MAX('Table'[ID])),[Product]),BLANK())
2. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix file without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
User | Count |
---|---|
77 | |
75 | |
36 | |
31 | |
28 |
User | Count |
---|---|
94 | |
80 | |
55 | |
48 | |
48 |