Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
guilherme_gq
Helper I
Helper I

RELATIVE DATE - Excluding sunday of last day

I have a card that is looking at a column value with a relative date filter, set to view the last 1 day (ignoring today). When Monday is selected, I don't want it to display the last day of Sunday. I want it to show the last day as Saturday. Someone have any idea how do that?

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @guilherme_gq,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Employee
Employee

Hi @guilherme_gq,

From your description, I could not understand the sentence "When Monday is selected, I don't want it to display the last day of Sunday. I want it to show the last day as Saturday". Could you mean the Saturday as the last day of a week? If so, you could use below formula:

Measure = WEEKDAY(LASTDATE('Table1'[Date]),3)

1.PNG

Result:

1.PNG

If I misunderstand you, could you please share some sample file and post your desired result if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.