Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there,
I currently have a table containing:
ID, Date, Item, Unit Cost
I've created the measures below, so that I can have the lowest costs VS the highest cost plotted on a table visual.
Solved! Go to Solution.
It's hard to answer this without knowing how your data model is structured, if you just have a single table something like the following might work. Note that it could be possible that there are multiple dates for a given Lowest Cost, so I'm using MIN to get the earliest one (you could switch this to use MAX if you want the most recent date)
Low Date=CALCULATE( MIN(Table[Date]) ; FILTER(Table ; Table[UnitCost] = [Lowest Cost] ) ; ALL(Table[Date]) )
You should be able to easily copy this pattern and create a version for the Highest Cost.
It's hard to answer this without knowing how your data model is structured, if you just have a single table something like the following might work. Note that it could be possible that there are multiple dates for a given Lowest Cost, so I'm using MIN to get the earliest one (you could switch this to use MAX if you want the most recent date)
Low Date=CALCULATE( MIN(Table[Date]) ; FILTER(Table ; Table[UnitCost] = [Lowest Cost] ) ; ALL(Table[Date]) )
You should be able to easily copy this pattern and create a version for the Highest Cost.
Hello @d_gosbell !
This is exactly what I needed. The data is comprised of one table only...the one we're working on.
I've already applied this one to the highest cost and to other extractions as well. Just needed to grasp the principle - syntax wise.
Cheers,
Antonio Santos
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 |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |