Forum Discussion
Active ProductPath for each customer
- 6 years ago
Hi corvada,
I change something in the data model based on your requirement , you could refer to my sample to see whether it work or not.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I've made another dummyfile, https://www.dropbox.com/s/cjkjr4b5184v2y6/Dummy-file%20ActiveProductPathv2.xlsx?dl=0
and https://www.dropbox.com/s/1828euve4n17gry/ActiveProductPathv2.pbix?dl=0
Hopefully you will understand what I mean.
I want to count each ActiveProductsPath for each date.
The result should be:
| 1-4-2019 | 2 | 1 | ||
| 1-7-2019 | 1 | 1 | 1 | |
| 1-10-2019 | 2 | |||
| 1-1-2020 | 1 | 2 |
Can someone help me?
Hi corvada,
According to your description, it seems that you want to show the "A, B" in column , right? As I know, you need to use field instead of measure in column of Matrix. You might need to change the data structure. I am still working on this and will inform you as soon as I get it.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hi Zoe Zhi,
You are right, I need a calculated column in a separate column in the data which calculates the active productpath for each customer. I don't know how to do that, hopefully you know 🙂
Best regards from The Netherlands,
Cor- dax6 years agoCommunity Support
Hi corvada,
I change something in the data model based on your requirement , you could refer to my sample to see whether it work or not.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Impressive work Zoe Zhi, I'm very pleased with your solution, thank you!
Last question, how can I change the following M-code to get unique ActiveProductPaths?
= Table.Group(#"Type gewijzigd", {"Aangepast", "Customer"}, {{"Path", each Text.Combine(List.Sort(Text.Split(Text.Combine([Product], ","), ","),Order.Ascending),", "), type text}})
On the 29th of July we have the productpaths "B" and "B, B". I want them to get only B, how can I change the formula?
https://www.dropbox.com/s/zvrxfymkw5x9tp7/Photo%20ActiveProductPath.png?dl=0
https://www.dropbox.com/s/opsqiam7fwmvzbw/ActiveProductPathv3.pbix?dl=0
Thanks in advance!
Regards,
Cor