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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Power5
Helper IV
Helper IV

Dynamic Date Title For Report

Hello, I am wanting to get the last 3 months from the current month for a title for my report. This is what I want it to say but in PowerBI. So now the title should say March 2022 - June 2022. Any ideas?!

Power5_0-1654536304288.png

 

2 ACCEPTED SOLUTIONS
SpartaBI
Community Champion
Community Champion

@Power5 

Create this measure:

 

Title = 
VAR _current_month = FORMAT(TODAY(), "MMMM YYYY")
VAR _3months_before =  FORMAT(EOMONTH(TODAY(), -3), "MMMM YYYY")
RETURN
"First Bank " & UNICHAR(10) & " Monthly Dellinquent Loans Comparison " & _3months_before  & " - " & _current_month

 

 


Then put it in a card visual for example:

View solution in original post

SpartaBI
Community Champion
Community Champion

@Power5 

 

Title = 
VAR _current_month = FORMAT(TODAY(), "MMMM YYYY")
VAR _january_this_year = FORMAT(DATE(YEAR(TODAY()),1,1), "MMMM YYYY")
RETURN
"First Bank " & UNICHAR(10) & " Monthly Dellinquent Loans Comparison " & _january_this_year  & " - " & _current_month

 

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

View solution in original post

10 REPLIES 10
Power5
Helper IV
Helper IV

I have a follow up question. How do I get my months to match what I have in my report title. I just want to show the last 3 months from the current month. 

Power5_0-1654542920631.png

 

SpartaBI
Community Champion
Community Champion

@Power5 you can use the date column in the filter pane or a slicer and set it to last 3 calendaric months under the relative date option

Hello, how would I make a title card that says January 2022 - the current month and year?

SpartaBI
Community Champion
Community Champion

@Power5 

 

Title = 
VAR _current_month = FORMAT(TODAY(), "MMMM YYYY")
VAR _january_this_year = FORMAT(DATE(YEAR(TODAY()),1,1), "MMMM YYYY")
RETURN
"First Bank " & UNICHAR(10) & " Monthly Dellinquent Loans Comparison " & _january_this_year  & " - " & _current_month

 

 


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

Hello SpartBI, 

 

By chance could you take a look at this question I had. https://community.powerbi.com/t5/Desktop/How-do-I-transpose-my-data-but-then-also-create-row-headers...

 

SpartaBI
Community Champion
Community Champion

@Power5 sure, it's already night here so we'll take a look at it tomorrow. Tag me tomorrow there to remind me. In case I answered the previous question don't forget to mark it as a solution for community visability. 

P.S. check out my report:

https://community.powerbi.com/t5/Data-Stories-Gallery/Contoso-by-SpartaBI/td-p/2449543.

 

Appreciate your kudos 🙂

Were you able to take a look?

SpartaBI
Community Champion
Community Champion

Hey! No, sorry, why didn't you write to me earlier :)) I will PM you

Great thanks!

SpartaBI
Community Champion
Community Champion

@Power5 

Create this measure:

 

Title = 
VAR _current_month = FORMAT(TODAY(), "MMMM YYYY")
VAR _3months_before =  FORMAT(EOMONTH(TODAY(), -3), "MMMM YYYY")
RETURN
"First Bank " & UNICHAR(10) & " Monthly Dellinquent Loans Comparison " & _3months_before  & " - " & _current_month

 

 


Then put it in a card visual for example:

Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.