Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a table loaded from SQL server using import into Power Bi. This table contains all of our historical and open PO information.
I've created measures to calculate what the next incoming PO date is for each item:
NEXT PO DATE = CALCULATE(
MIN(PURCHASING[PROMISE DATE]),
IF(
PURCHASING[PROMISE DATE] >= DATE(YEAR(NOW()),MONTH(NOW()),DAY(NOW())),
1,
BLANK()
)
)
I've also created a mesure to calculate how much is on the next incoming PO:
NEXT PO QTY = CALCULATE(
SUM('ON ORDER BY DATE'[QTY ON ORDER]),
FIRSTDATE('ON ORDER BY DATE'[PROMISE DATE])
)
The query loads in a column which shoes the shipping method for each PO. What I can't figure out how to do is how to show a, for each item, all 3 pieces: What the next PO date is, the quantity on that PO, and how it arrives. The first two are solved with the above measures, but I can't figure out how to show the shipping method for that PO. I can't simply insert the "shipping method" column from the query since there are many shipping methods depending on the PO. Doing so returns this:
As you can see from this picture, the correct shipping method for the next PO is "Routing Guide", but I end up seeing all of the potential options.
Any ideas?
Solved! Go to Solution.
I found a solution:
Because I had already created a calculated table, defined as follows:
ON ORDER BY DATE = CALCULATETABLE(
Purchasing,
SUMMARIZECOLUMNS(Purchasing[PROMISE DATE]),
Purchasing[PROMISE DATE] >= TODAY()
)
I was able to use this, and when I add the column "Shipping Method", use the Power Bi selection of "first" since this calcualated table only brings in PO's that are greater than the current date. So the "first" in the column would be for the most recent PO.
I found a solution:
Because I had already created a calculated table, defined as follows:
ON ORDER BY DATE = CALCULATETABLE(
Purchasing,
SUMMARIZECOLUMNS(Purchasing[PROMISE DATE]),
Purchasing[PROMISE DATE] >= TODAY()
)
I was able to use this, and when I add the column "Shipping Method", use the Power Bi selection of "first" since this calcualated table only brings in PO's that are greater than the current date. So the "first" in the column would be for the most recent PO.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
60 | |
60 | |
49 | |
45 |