Forum Discussion
Return only specific data combination in grouped table
Hello,
I'm trying to write a measure that would return very specific combination of data - and count it.
The case is as following: I have columns "Collection Number", "Original Shipping Date", "Post Code Prefix", "Name", "SOB Status". Now, what I'm trying to achieve is to group data based on date, post code and customer (name) and then return only those clients (name) and orders (collection number) that have both status "High" and "Low" for a specific day (Original Shipping Date).
In short my goal is to identify Low value orders that have been shipped alongside the High value orders in the same day for a same customer so we know that the shipping cost have not been spent solemnly on the Low value order.
On the second screenshot I would like to be able to count the those three SOBs (High, High, Low) as 1 - One combined order.
Hope this explanation make sense, I've been struggling with it for some time so might have overcomplicated it.
Any advices would be masively appreciated.
1 Reply
- lbendlinSuper User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523