Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
Power BI newbie. I wanted to know the top category by sales per place, per year so I created a calculated table with a calculated column for the rank that looks like this:
I tried to concatenate the categories for my visual using this measure:
Top Category = CONCATENATEX(FILTER(Table, Table[Rank]=1), Table[Category], ",")
But this is what I got despite the date on the slicer being Year 3:
I've been working on this for quite some time and can't seem to find any solution. I'd appreciate any help. Thanks in advance.
Solved! Go to Solution.
Hi,
These measures work
Sales = SUM(Data[Total sales])
Max sales = MAXX (VALUES(Data[Category]),[Sales])
Best selling category = CONCATENATEX(TOPN(1,VALUES(Data[Category]),[Sales]),Data[Category],",")
Hope this helps.
Hi,
These measures work
Sales = SUM(Data[Total sales])
Max sales = MAXX (VALUES(Data[Category]),[Sales])
Best selling category = CONCATENATEX(TOPN(1,VALUES(Data[Category]),[Sales]),Data[Category],",")
Hope this helps.
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 |
---|---|
78 | |
76 | |
53 | |
37 | |
31 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |