- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
EARLIER function dax
Hello!
Can someone help me write this correctly? It's about entering a value from an earlier date. I'm trying to do it using "EARLIER" but it doesn't work for me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @bjurek ,
Here are the steps you can follow:
1. Create calculated column.
Calculated Column1 =
MAXX(
FILTER(ALL('Table'),
'Table'[Shop]=EARLIER('Table'[Shop])&&
'Table'[Date]<EARLIER('Table'[Date])),[Date])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @bjurek ,
Here are the steps you can follow:
1. Create calculated column.
Calculated Column1 =
MAXX(
FILTER(ALL('Table'),
'Table'[Shop]=EARLIER('Table'[Shop])&&
'Table'[Date]<EARLIER('Table'[Date])),[Date])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @bjurek
Please clarify further the part that says "skip product B".
Please try
Previous Product =
MAXX (
TOPN (
1,
FILTER (
CALCULATETABLE ( ALLEXCEPT ( 'Table', 'Table'[Shop] ) ),
'Table'[Date] < EARLIER ( 'Table'[Date] )
),
'Table'[Date]
),
'Table'[Product]
)

Helpful resources
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |