The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hey guys and gals,
I have a query that contains two columns, [Sales Order Number] (..which is unique) and [Services].
For each Sales Order Number there is a combination of words in Services
111 | Parcel |
112 | Parcel, Parcel |
113 | Parcel, Parcel, Parcel |
114 | Parcel, Parcel, Parcel, Truck |
115 | Parcel, Parcel, Truck |
116 | Parcel, Truck |
117 | Truck |
118 | Truck, Truck |
119 | Truck, Truck,Truck |
121 | Truck, Truck, Parcel |
I need a way to count orders where:
Min. 1 Truck + 1 Parcel = Parcel Split
Min. 2 Truck = Truck Split
Min. 2 Truck + 1 Parcel = Both Parcel Split and Truck Split
And I need a measure that counts all "Truck" and a measure that counts all "Parcel"
Explaination:
I'm trying to do a calculation on the split percentage of orders. So I need to know how many orders where considered a Parcel Split and how many a Truck Split and then divide it by the total amount of orders.
I hope it makes sense and thanks in advance, for the support,
Bassehave
Solved! Go to Solution.
@Bassehave Based on my understanding of the problem , I suggest we should create first these two measures to count the Number of times Parcel occurs in a text column and number of times Truck occurs , below can be used
-------------------------------------------------------------------------------------------------------------------------------
Good day, amigo! Have I provided the solution? If so, please let me know by adding the lovely, sweet "solution" tag to my post. And hey, if you're feeling very kind, give me a Kudos; after all, who doesn't enjoy a little digital gratitude?
@Bassehave Based on my understanding of the problem , I suggest we should create first these two measures to count the Number of times Parcel occurs in a text column and number of times Truck occurs , below can be used
-------------------------------------------------------------------------------------------------------------------------------
Good day, amigo! Have I provided the solution? If so, please let me know by adding the lovely, sweet "solution" tag to my post. And hey, if you're feeling very kind, give me a Kudos; after all, who doesn't enjoy a little digital gratitude?
User | Count |
---|---|
28 | |
10 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |