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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
HenryJS
Post Prodigy
Post Prodigy

Column = Latest Monday Function

Hi all,

 

How can I ammend the below column to filter for >= Latest Monday

 

Instead of 01.03.20?

 

Contacted After March? = if(isblank(maxx(filter('Export Actions','Export Actions' [CandidateRef] ='Merge1'[CandidateRef]
&& 'Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= date(2020,03,01)),
'Export Actions' [CandidateRef])),"No","Yes")
 
 
Thank you
6 REPLIES 6
amitchandak
Super User
Super User

@HenryJS 

Use selected date in place of date[Date]

 

 'Date'[Date]+-1*WEEKDAY('Date'[Date],2)+1 -7

 

Like

var _max =Maxx(Date, Date[Date])

var _ls_mon = _max+-1*WEEKDAY('Date'[Date],2)+1 -7

 

-7 for last week. Else do not use that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak 

 

I tried below

 

Unfortunately it didn't give required result.

 

I would like it 'Yes' if they have been contacted since the latest monday. So today is monday so it would only be yes for those contacted today.

 

Contacted Since Monday? = if(isblank(maxx(filter('Export Actions','Export Actions' [CandidateRef] ='Merge1'[CandidateRef]
&& 'Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= 'Export Actions'[ActionDate]+-1*WEEKDAY('Export Actions'[ActionDate],2)+1-7),
'Export Actions' [CandidateRef])),"No","Yes")
 
 
Capture.JPG

@HenryJS,Can you share sample data and sample output.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak unfortunately I can't share the data as it's all personal and contact info!

 

I've got a measure in a different report that uses the 'LatestMonday' logic.

 

The below is a column granted but need:

  • IF CandidateRef in 'Merge1' has had 'Export Actions'[ActionName] = Call Update
  • Since 'Latest Monday'
  • THEN Yes

 

Contacted Since Monday? = if(isblank(maxx(filter('Export Actions','Export Actions' [CandidateRef] ='Merge1'[CandidateRef]
&& 'Export Actions'[ActionName] = "Call - Update" && 'Export Actions'[ActionDate]>= 'Export Actions'[ActionDate]+-1*WEEKDAY('Export Actions'[ActionDate],2)+1-7),
'Export Actions' [CandidateRef])),"No","Yes")

 

Capture4.JPG

@Greg_Deckler @amitchandak is this possible to do without a Date Table?

 

Thanks

Greg_Deckler
Community Champion
Community Champion

If you have a Date table and in that Date table have a Weekday column created using WEEKDAY then you could do this:

 

Latest Monday = MAXX(FILTER('Date',[Weekday] = 2),[Date])

 

Assuming you use the WEEKDAY version that gives you 2 for Monday.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.