Data analysis
Hello guys,
I am trying to use PowerBI to analyse some data and plot them into graphs. I have one major issue that i can't get to work:
I am trying to plot graphs based on order reference; one order reference can have multiple lines (obviously). An example of what i want to do would be to know how many order reference numbers would contain x amount of a product. I can plot a graph with the amount of a product on the Y axis and the order references on the X-axis, but i can't get the graph to show how many of each amount there are. I can't use the order reference as a base to plot my graphs.
Is this at all possible, or am i doing something wrong?
I have tried doing this analysis in Excel, but because of the size of the data this isn't possible. The program just keeps crashing.
Thanks in advance for answering.
Posted Nov 13, 2020, 4:18 PM UTC
I see in a previous comment you want to do "a count of a count". For that, I think you are going to need to nest a few functions in your measure. I'm thinking a combination of COUNTROWS, FILTER and SUMMARIZE will get you there. Your inner most function would be SUMMARIZE where you summarize your table to get the first count of x by order reference. Then surround that by FILTER to get the number of order references over your threshold for the first count. Finally, surround all of that by COUNTROWS to get your final result.
Thank you so much! I will definitely try this. This was exactly the kind of advice i was looking for. I don't have a lot of experience with DAX yet so i couldn't figure out which functions to use. Again, thanks a lot.
You're welcome. It's possible I missed something, so feel free to reach back out if you try it and it still isn't working.