Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Need help
How can get I top products bought by each gender in a bar chart using no or simplest dax
when I do top products by female and male using filter I get correct output but together in bar chart I get wearing output
Hi @Meg_01 ,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information and description to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Rank the products by gender:
ProductRankByGender =
RANKX(
FILTER(
ALL('Sales'),
'Sales'[Gender] = EARLIER('Sales'[Gender])
),
CALCULATE(SUM('Sales'[Quantity])),
,
DESC
Filter the top products:
TopProductsByGender =
CALCULATETABLE(
'Sales',
'Sales'[ProductRankByGender] <= 5
)
For more share sample data
Proud to be a Super User! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |