Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi
I would be happy if you could help me. I have also used measure to solve that but failed.
Problem : If today is the first day of current month , for example ( 01 August 2023 ) then start the calendar from the beginning of previous month till the end of previous month --> 01 July 2023 .... till 31 July 2023.
Else start the calendar from beginning of current month ( 01 August 2023 ) till the end of current month ( 31 August 2023)
Thanks in advance.
Regards
Solved! Go to Solution.
Worked ! Thanks a lot.
The CALENDAR function returns a table, so I don't think that is what you are wanting. Is this what you are looking for?
Column =
VAR _Today = TODAY()
RETURN
IF (
DAY ( _Today ) = 1,
EOMONTH ( _Today, -2 ) + 1 & " - " & EOMONTH ( _Today, -1 ),
EOMONTH ( _Today, -1 ) + 1 & " - " & EOMONTH ( _Today, -0 )
)
It's not really clear to me what is the exact string you are wanting to see in that colmn today, Aug 12th and what would you want to see when TODAY() = Sept 1st?
What do you want to see on the rows for dates 3 months ago?
As an example.
If today is 01.08.2023 ( first day of current month)
I would like to have calendar table between 01.07.2023 - 31.07.2023
else ( today is <> 01.08.2023 )
I would like to have calendar table between 01.08.2023 - 31.08.2023
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 46 | |
| 32 | |
| 21 | |
| 17 | |
| 17 |