Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi All
First post so hopefully this is the right place. I have a large table of data (a sample below). I want to create a column where it will show the position of the ProductID of the previous date. So for the 5th December the position will be 100019023. Please note that in the table there will be a date for each position, its the the ProductID that may change by day. I've been trying to solve this using LookupValue but with no luck!
Solved! Go to Solution.
Hi @kenmuir71
Create a column
Column =
CALCULATE (
MAX ( 'Table'[Position] ),
FILTER (
'Table',
'Table'[ProductID] = EARLIER ( 'Table'[ProductID] )
&& 'Table'[date] < EARLIER ( 'Table'[date] )
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @kenmuir71
Create a column
Column =
CALCULATE (
MAX ( 'Table'[Position] ),
FILTER (
'Table',
'Table'[ProductID] = EARLIER ( 'Table'[ProductID] )
&& 'Table'[date] < EARLIER ( 'Table'[date] )
)
)
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try
First Sales Date = MAXX(filter(purchase,purchase[Date]<EARLIER(Sales[Date]) && Sales[Product Id]= EARLIER(purchase[Product Id])),purchase[position])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
the function EARLIER() is your friend.
User | Count |
---|---|
130 | |
108 | |
101 | |
67 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |