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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MaliniBaktha
Helper II
Helper II

Current week dax function without a calendar table

Hi, 

I am trying to put my refresh date as to show the data refreshed date as of now in my dashboard. But I dont have the calendar table. If I have a calendar table then I know the dax to put the every monday date as my data as of function. But since I dont have a calendar table attached is there any solution ?

MaliniBaktha_0-1692874598747.png

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Subtract the weekday of the date from the date (select the option where monday is 0 and sunday is 6).  That will always return the monday of that week.

View solution in original post

7 REPLIES 7
lbendlin
Super User
Super User

lbendlin
Super User
Super User

Subtract the weekday of the date from the date (select the option where monday is 0 and sunday is 6).  That will always return the monday of that week.

I used a today function thinking that will show the date of my refresh. But it is typically wotking as current date. How do I use your suggestion in DAX? 

Neither dates are useful.  Always use dates from your fact table to identify when the last activity was reported.

so the problem with our calendar table is I dont have a weekday column to choose the recent activity 

MaliniBaktha_0-1694697544381.png

These are the columns in my calendar date table 

Activities are in your fact table, not the calendar dimension table.

 

I would recommend you mark your Dates table as such  (which validates contiguity) and to disable auto/date time hierarchies.

is this disable option in the format section?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.