Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
hi everyone,
i need your help...
i need to receive data from another column in my date table.
i have for example my current date 24-10-2022 in my calendar and i need to show data from friday 21-10-2022.
to do that i have managed to enter a new column to my calendar which is prevworkingday and now my only problem is how to get data from this date and not from my current date 24-10-2022.
Hi @tchalkias ,
I suggest you to try this code to get data from other column by [PrevWorkingDay] column.
Data =
CALCULATE (
SUM ( 'TableName'[Data] ),
FILTER (
'TableName',
'TableName'[Date] = EARLIER ( 'Calendar'[PrevWorkingDay] )
)
)
Here we use SUM() to get data in number type. If you want to get text type data, try Max().
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @Anonymous i get this message
Hi @tchalkias ,
Please make sure which table did you add this calculated table. Here you use EARLIER('Calendar'[PrevWorkingDay] ), so this calculated column should be added in 'Calendar' table. Or you will get this error message "EARLIER/EARLIEST refers to an earlier row context which doesn't exist."
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,thanks for your replies!
My calendar has the column PrevWorkingDay like this...
isn't it correct?