Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi!
I'm building a table that shows information about different orders, like this:
In this example I have filtered to 1 order, in reality there's more.
The orders can have several delivery dates. I want to show one row per order, with the max delivery date. The amount ordered and amount delivered should show the total of all deliveries. So in this example amount ordered: 17, amount delivered: 17.
This is a simple drawing of the data model:
I'm using a live connection, so would prefer to solve this using measures.
I am able to make changes to the model if neccesary.
Solved! Go to Solution.
You should be sharing more information on your model, but let me give you some hints..
If you have the delivery dates in your fact_orderlines then it is simply something like MAX(fact_orderlines[delivery_date]).
If your are linking to the date dimension with a non-date column, using single direction, you will need to crossfilter the dimension and then it will be something like CALCULATE(MAX(dim_date_delivered[date]),CROSSFILTER(dim_date_delivered[id], fact_orderlines[delivery_date_id], BOTH)
You should be sharing more information on your model, but let me give you some hints..
If you have the delivery dates in your fact_orderlines then it is simply something like MAX(fact_orderlines[delivery_date]).
If your are linking to the date dimension with a non-date column, using single direction, you will need to crossfilter the dimension and then it will be something like CALCULATE(MAX(dim_date_delivered[date]),CROSSFILTER(dim_date_delivered[id], fact_orderlines[delivery_date_id], BOTH)
I am indeed linking with a non-date column with single direction. Your suggestion worked perfectly, thanks a lot.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 21 | |
| 10 | |
| 8 | |
| 8 |