March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
127 | |
84 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |