- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Problem with Previousmonth
Hi guys,
I need the dates of the previous month but using a different date than the current one for example the date of the last reload (5/3/2021)
I try using
Month last reload = CALCULATE(PREVIOUSMONTH('Diagnostica'[Last reload]), MONTH('Diagnostica'[Last reload])-1)
Diagnostica is a table with 1 column and 1 row where is the date of the last reload.
It doesn't work. Can you help me please?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@giuliapiazza94 , in case you want to create a table then
table of last month =
calendar(eomonth(today(),-2)+1,eomonth(today(),-1))
if you need to measure use time intelligence with a date table
MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth('Date'[Date]))
Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've tried
table of last month =
calendar(eomonth(today(),-2)+1,eomonth(today(),-1))
but doesn't work.
The error is MdxScript(model) (14,28)
do you know why?😥

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-09-2024 01:39 AM | |||
11-29-2024 04:27 AM | |||
02-06-2024 01:53 AM | |||
05-28-2024 07:49 AM | |||
11-26-2021 01:22 AM |
User | Count |
---|---|
14 | |
14 | |
11 | |
11 | |
8 |