Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear community,
how can I solve the following problem:
Username | Typ | Costs | Frequency | Index |
Musterman | M | 125 | 6 | 1 |
Musterman | M | 3200 | 6 | 2 |
Musterman | M | 3200 | 6 | 3 |
Musterman | M | 400 | 6 | 4 |
Saunders | N | 3800 | 1 | 5 |
Wooten | K | 3200 | 1 | 6 |
Brown | B | 3800 | 2 | 7 |
Brown | B | 125 | 2 | 8 |
I want to keep all rows with frequency 1 and if the frequency is bigger than 1, then I want to keep the most expensive one (regarding the column costs). That means I want to keep the rows with the index number 2, 3, 5, 6, 7 and delete the rows with the numer 1 , 4, 8. How can I do this?
Thank you very much!
Best regards
Solved! Go to Solution.
in dax:
new table=filter(table1,VAR _max=calculate(max(table1[costs]),allexcept(table1,table1[username],table1[typ])) RETURN table1[costs]=_max)
in dax:
new table=filter(table1,VAR _max=calculate(max(table1[costs]),allexcept(table1,table1[username],table1[typ])) RETURN table1[costs]=_max)
It works, thank you very much wdx223_Daniel
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
13 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |