Dear Power BI Community,
First of, thank you for the amazing work you create every day.
Can you help me with the following?
I would like to create a measure which does 2 things:
There is also a linked 'Products' table where products are uniquely listed if that is of any help.
Let me know if you need more background information.
Appreciate your kind comments.
Best regards,
Olin
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
Can you help me again? I would need to have some additional columns (the accumulated quantity sold and the turnover generated + % per quantity / turnover for each cluster) included in the output, can be an additional measure or directly in your cluster measure.
Here is your solution file with the updated requirement:
Thank you.
Best regards,
Olin
Hi,
You may download my PBI file from here.
Hope this helps.
You are welcome.
Hi all,
Thank you all for your amazing work.
Ashish's solution turns out to work best for my scenario.
Best
You are welcome.
Hi @ryan_mayu
Thank you for your swift reply.
You find a sample data set including expected result here:
Best regards
Maybe try something like this:
Num of Products in Grouping - 1 step =
CALCULATE(
DISTINCTCOUNT('Products'[Product Number]),
FILTER(
ADDCOLUMNS(
VALUES('Products'[Product Number]),
"@CustCount",
CALCULATE(
DISTINCTCOUNT('Orders'[Customer]),
ALL('Orders'[Product Number]),
'Orders'[Product Number] = EARLIER('Products'[Product Number])
)
),
[@CustCount] >= SELECTEDVALUE('Cluster'[MinCount])
&& [@CustCount] < SELECTEDVALUE('Cluster'[MaxCount])
)
)
It *seems* to works for me (even with a larger dataset).
The Cluster table needs Min and Max columns.
I'm pretty new at this so good luck with it.
Also, sorry about the formatting.
here is a workaoround for you
Proud to be a Super User!
could you pls provide the sample data and the expected output?
Proud to be a Super User!
User | Count |
---|---|
202 | |
80 | |
79 | |
76 | |
44 |
User | Count |
---|---|
166 | |
86 | |
80 | |
79 | |
74 |