Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All!
First of all, I only started using PowerBI 2 days ago so my description is not going to be professional.
I would like to recommend movies based on the user's gender, age, genre preference, etc
My pre-generated data set includes information about the avg. rating of movies by the voter's gender and age. Here are a few examples (every gender - age combination is covered in the data set):.
I wonder if it is possible to create slicers for Gender and Age with the following logic:
I know its a pretty unprofessional way to describe my problem, but I hope you can still understand what I want to achive.
.
Any help would be appreciated!
Thanks!
Solved! Go to Solution.
Hi @Anonymous
It is possible to achieve. But you need to transform the data first to make it more suitable for slicers.
First in Power Query Editor, make all data in the column have the same format and split them into separate columns Gender, Age and Rating.
After applying data into model, create a measure which is used to display Rating value.
Rating to display =
MAXX (
FILTER (
MovieRating,
MovieRating[Gender] = SELECTEDVALUE ( MovieRating[Gender], "Any Gender" )
&& MovieRating[Age] = SELECTEDVALUE ( MovieRating[Age], "All Ages" )
),
MovieRating[Rating]
)
Create two slicers, put Gender column and Age column in each. Put above measure in a card visual to display the value.
Here is a DEMO pbix you can download for details. Let me know if you have any questions.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
Hi @Anonymous
It is possible to achieve. But you need to transform the data first to make it more suitable for slicers.
First in Power Query Editor, make all data in the column have the same format and split them into separate columns Gender, Age and Rating.
After applying data into model, create a measure which is used to display Rating value.
Rating to display =
MAXX (
FILTER (
MovieRating,
MovieRating[Gender] = SELECTEDVALUE ( MovieRating[Gender], "Any Gender" )
&& MovieRating[Age] = SELECTEDVALUE ( MovieRating[Age], "All Ages" )
),
MovieRating[Rating]
)
Create two slicers, put Gender column and Age column in each. Put above measure in a card visual to display the value.
Here is a DEMO pbix you can download for details. Let me know if you have any questions.
Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.
Thank you very much Jing!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 49 | |
| 42 |