Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi
I have a column hirearchy, and a list of customer ID, Now customers can have only 1 unique ID associated with it, but the column has values like for example
1. RLE
2. Treatment
3. Surgery
4. LRI
and so on..
the column hirearchy is based on the fact that if a customer buys 2 RLE i need to count only 1, that was easy with distinctcount, and i managed to do it. BUT now it seems customer can buy and RLE, a TREATMENT and then SURGERY then I need to count 1 and that customer as an RLE Customer.
if, suppose a customer gets an LRI and then a TREATMENT, then i need to count The customer as a TREATMENT customer.. in this list whatever comes on top, that instance should be counted.. DO ANYONE HAS ANY IDEA HOW I CAN APPROACH THIS ?? YOUR COMMENTS WILL BE VALUABLE
Solved! Go to Solution.
I have found the solution, there was a previous question that is similar to what i want.. posting it here to close this thread :
I have found the solution, there was a previous question that is similar to what i want.. posting it here to close this thread :
Hi @Anonymous ,
Not very clear, Why the output of OTHERS is 2, but the output of SBK is 1?
It makes it easier to give you a solution.
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team Gao
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data
the grouping has to be done based on customer ID
so if you look at others there are two customers who have others ( cid 1 and 4 )
there are 6 customers who has RLE as the minimum Hierarchy (2,3,5,6,7,9)
there is 1 customer who has sbk ( 8 )
@PattemManohar Iam expecting a matrix as an output in powerbi.. Like the screenshot above
@Anonymous Can you put what's your expected output would look like ?
Proud to be a PBI Community Champion
To explain further
the hierarchy should be only counted once, ie for cid 1= count should be 1 and as others
IF you look at cid 6, count should again be 1 but for RLE ..I hope you can understand this
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
108 | |
108 | |
92 | |
67 |
User | Count |
---|---|
161 | |
129 | |
129 | |
92 | |
91 |