Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello.
I need to make a chart like this:
It's a chart with the top-selling product (of a list of 50) according to the date (day, week) and hour. I already have all the data correctly formatted, but I can't find a proper way to achieve it.
Thanks!!
Hi @Anonymous ,
Assuming you have the following example data,
then you can use the measure to return the top ranked product.
Measure =
var maxvalue = MAX('Table'[number])
return CALCULATE(MAX('Table'[Product]), FILTER('Table','Table'[number] = maxvalue))
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you!!
The problem is that we calculate the number using a measure, and CALCULATE does not accept it.
Our data structure is a bit more complex. What we register is the sell as commercial act, and each one have tags indicating the product. With the measure we count the number of the tags. Each sell ID has a tag for every product of the shop. 0 for the products we don't sell and X for the sold products.
you have given very little information here i am not sure how you want someone to solve this.
1. what does your data look like, provide sample data in text format
2. what are you struggling with exactly?
Proud to be a Super User!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
114 | |
91 | |
88 | |
35 | |
35 |
User | Count |
---|---|
153 | |
99 | |
82 | |
63 | |
54 |