Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm currently working on a dataset where I would need to display the location with the most ratings that are less than 3.
I can't seem to figure out the correct DAX functions to use to display this.
I have attached table below, any help would be greatly appreciated
Location name | Rating |
London | 5 |
Birmingham | 4 |
Coventry | 3 |
Basingstoke | 4 |
Manchester | 5 |
London | 5 |
Birmingham | 1 |
Coventry | 1 |
London | 2 |
Birmingham | 2 |
Coventry | 2 |
Birmingham | 2 |
Coventry | 3 |
Basingstoke | 4 |
Solved! Go to Solution.
@OsmanEmi , Try measures like
cnt = calculate(count(Table[Location name] ), filter(Table, Table[Rating]<=3))
// This will give the location
Top 1 Rank = CALCULATE(max(Table[Location name]),TOPN(1,all(Table[Location name]),[cnt],DESC),VALUES(Table[Location name]))
@OsmanEmi , Try measures like
cnt = calculate(count(Table[Location name] ), filter(Table, Table[Rating]<=3))
// This will give the location
Top 1 Rank = CALCULATE(max(Table[Location name]),TOPN(1,all(Table[Location name]),[cnt],DESC),VALUES(Table[Location name]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |