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 there,
I think I have a straight forward question that many of you probably might answer in a matter of seconds.
But somehow, it doesn't seem like I can get it to work.
I have a matrix (see below) showing the top places, their names and what movies they were in.
What I would like to do is to filter in a way so that I only get the place with the highest total for each movies.
So I expect to have only 8 lines (8 different movies) with each showing the place that was most often used in that specific movie.
How in the world do I manage to get that?
Thanks in advance.
Solved! Go to Solution.
Hi @CHFarver ,
You could either create a measure to get the highest total for each movies and filter total places = higest total, or create a measure to rank the total places for each movies and filter rank = 1.
For example:
measure 1 =
var _max_each_movies = MAXX(ALLEXCEPT('Table','Table'[Movie]),[Total Places])
return
IF([Total Places] = _max_each_movies,[Total Places],BLANK())
Or
measure 2 = RANKX(ALLEXCEPT('Table','Table'[Movie]),[Total Places],,DESC)
Then add measure2 to visual filter set value = 1.
Best Regards,
Jay
Hi @CHFarver ,
You could either create a measure to get the highest total for each movies and filter total places = higest total, or create a measure to rank the total places for each movies and filter rank = 1.
For example:
measure 1 =
var _max_each_movies = MAXX(ALLEXCEPT('Table','Table'[Movie]),[Total Places])
return
IF([Total Places] = _max_each_movies,[Total Places],BLANK())
Or
measure 2 = RANKX(ALLEXCEPT('Table','Table'[Movie]),[Total Places],,DESC)
Then add measure2 to visual filter set value = 1.
Best Regards,
Jay
Total Places measure is a simple count of the places in the Dialogue table
Also this is my data model
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |