Forum Discussion

Eldin's avatar
Eldin
Regular Visitor
4 years ago
Solved

Time Periods

Hello,

 

I've been searching a lot for some good Time Periods in DAX or M Queries, but can't seem to find something that helps me. Everytime there is something missing in order to get the full solution. 

 

So, what i want is following:

 

To have a DAX-measure or M-query that shows:

- Today

- Yesterday

- Current week 

- Last week (most important)

- This month

- Last Month 

- Custom

 

What I have created so far is this, maybe if someone knows what code I need to put in to get "Last week" or "Today". That would be really helpful. 

And I will then filter all my data according to if it corresponds to these periods. 

3 Replies