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
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"))
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 |
---|---|
11 | |
3 | |
2 | |
2 | |
2 |