Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello experts,
I am new in powerbi. Need help in below case.
I have order table like below.
Order Received Date | Order Received Month | Order Number | Order Delivered On | Order Delivered Month | Payment Received On | Payment Received Month |
01/06/2017 | Jun | 2000 | 26/06/2017 | Jun | 30/06/2017 | Jun |
01/06/2017 | Jun | 2001 | 27/06/2017 | Jun | 30/06/2017 | Jun |
01/06/2017 | Jun | 2002 | 07/07/2017 | Jul | 31/07/2017 | Jul |
08/06/2017 | Jun | 2003 | ||||
09/06/2017 | Jun | 2004 | 10/07/2017 | Jul | 31/07/2017 | Jul |
05/07/2017 | Jul | 2005 | 31/07/2017 | Jul | 31/08/2017 | Aug |
05/07/2017 | Jul | 2006 | 01/08/2017 | Aug | 31/08/2017 | Aug |
08/08/2017 | Aug | 2007 |
I want to output like below in the calculated table to see order backlog. Please help.
Row Labels | Orders Received | Orders Delivered | Payment Received |
Jun | 5 | 2 | 2 |
Jul | 2 | 3 | 2 |
Aug | 1 | 1 | 2 |
Grand Total | 8 | 6 | 6 |
Solved! Go to Solution.
I would use the Query Editor to get your data into the following format:
Order Number, Month, Type, Date
2000, Jun, Order Received, 01/06/2017
2000, Jun, Order Delivered, 26/06/2017
2000, Jun, Payment Received, 30/06/2017
...
You should be able to do this by either breaking this into multiple queries and appending or potentially unpivoting columns but for data in that format, I'm thinking multiple queries and appending together.
At that point, your issue becomes fairly simple, you simply need a COUNT of each Type and a visual that includes Month and the measures you create for these, which would look something like:
Orders Delivered = COUNT(Table[Order Number],FILTER(Table,[Type]="Order Delivered"))
I would use the Query Editor to get your data into the following format:
Order Number, Month, Type, Date
2000, Jun, Order Received, 01/06/2017
2000, Jun, Order Delivered, 26/06/2017
2000, Jun, Payment Received, 30/06/2017
...
You should be able to do this by either breaking this into multiple queries and appending or potentially unpivoting columns but for data in that format, I'm thinking multiple queries and appending together.
At that point, your issue becomes fairly simple, you simply need a COUNT of each Type and a visual that includes Month and the measures you create for these, which would look something like:
Orders Delivered = COUNT(Table[Order Number],FILTER(Table,[Type]="Order Delivered"))
User | Count |
---|---|
15 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
18 | |
11 | |
5 | |
4 | |
3 |