This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have got this to work, but I really don't like how I have done it, and was wondering if there was a better way?
I have two tables:
I have a new calculated column in tankID, whos job it is to get the latest fuel level for that tank from FuelLevels.
I have a relationship set up on TankID, (one to many, single way filtering)
calculated column is:
Logic: searching the FuelLevels table:
I dont really like this part, it seems messy, but it works.
I really dont like this, as it seems superflous. (this should be done by relationships?)
Can someone tell me how to do this better!!
Many thanks
*edit*
I want to use something like this:
Solved! Go to Solution.
hi, @etalon
For your requirement, you could try this formula:
Column 2 = var _maxdatetime=CALCULATE(MAX(FuelLevels[Date/Time])) return CALCULATE(SUM(FuelLevels[Value]),FuelLevels[Date/Time]=_maxdatetime)
Best Regards,
Lin
hi, @etalon
For your requirement, you could try this formula:
Column 2 = var _maxdatetime=CALCULATE(MAX(FuelLevels[Date/Time])) return CALCULATE(SUM(FuelLevels[Value]),FuelLevels[Date/Time]=_maxdatetime)
Best Regards,
Lin
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 27 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 35 | |
| 32 | |
| 25 | |
| 24 |