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
Hello,
I need to find the prior date with data as a measure,
Two tables, 1 is a Calander table and 1 is a Lines table,
Column Date comes from Calander, column Volume (Measure) comes from Lines
It has to be measure only, I am connected to a data-set and cannot create a calculated column,
This doesn't work:
CALCULATE(CALCULATE(MAX(Lines[Date]), DATEADD(Dates[Date],-1,DAY)), FILTER(Lines, [Volume]>0))
The result needed:
Any guidance is appreciated,
Cheers,
Solved! Go to Solution.
Hi @YABOUSALEH
please try
Prior Date with Volume =
MAXX (
FILTER (
ALLSELECTED ( Lines ),
[Volume] > 0
&& 'Date'[Date] < MAX ( 'Date'[Date] )
),
'Date'[Date]
)
Hi @YABOUSALEH
please try
Prior Date with Volume =
MAXX (
FILTER (
ALLSELECTED ( Lines ),
[Volume] > 0
&& 'Date'[Date] < MAX ( 'Date'[Date] )
),
'Date'[Date]
)
This is great, almost perfect, thank you, slightly modified, used the calander table instead,
Original:
Modified:
MAXX (
FILTER (
ALLSELECTED(Dates),
[Volume] > 0
&& Dates[Date] < MAX ( Dates[Date] )
),
Dates[Date]
)
This might be nitpicking, any chance dates outside the filters would populate?
Great if possible, can do without,
PS. I confirmed your response as an answer, would you just modify the code to Dates (or Calander) instead of Lines, for consistency to the next person 🙂
Cheers
Please send me o copy of your measure
Hi,
Try this :
I get an error:
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 |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 20 | |
| 13 | |
| 12 |