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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
MD72
Regular Visitor

Turning text values into dates for additional reporting / analysis

Hello

 

I have a column in my data model titled 'Horizon_Timeframe' as shown below. The source (SharePoint List) is a drop-down list with 3 options: <1 Year; 1-2 Years; >2 Years. 

 

I would like to create a new calculated column, in Power BI Desktop, that allows me to report / analyse using a real date range, using today's date as the starting point, but not sure where to begin, so any guidance is very much appreciated.

 

MD72_0-1687257166846.png

Regards

Mark

Mark

1 ACCEPTED SOLUTION

Hi @MD72 

 

Yes, using that filed, you can definitely create one custom filed.

 

I have tried with your scenario and result as below:

janigaurang_0-1687526043049.png

 

Formula I used :

TimeFrame = IF((TODAY() - 'FO Backlog v2 0'[Created])<365,"< 1 Year",IF((TODAY() - 'FO Backlog v2 0'[Created])<630,"< 1-2 Year","> 2 Year"))

 

Let us know if this helps.

 

Thanks,

View solution in original post

4 REPLIES 4
MD72
Regular Visitor

Hi janigaurang,

Brilliant, that works just how I wanted.

Regards

Mark

MD72
Regular Visitor

Hi Janigaurang

 

Thanks for the response. Think I understand what you are saying. There is the 'Created' date that is a standard SharePoint column, do you think that this could be used?

Regards

Hi @MD72 

 

Yes, using that filed, you can definitely create one custom filed.

 

I have tried with your scenario and result as below:

janigaurang_0-1687526043049.png

 

Formula I used :

TimeFrame = IF((TODAY() - 'FO Backlog v2 0'[Created])<365,"< 1 Year",IF((TODAY() - 'FO Backlog v2 0'[Created])<630,"< 1-2 Year","> 2 Year"))

 

Let us know if this helps.

 

Thanks,

janigaurang
New Member

Hi @MD72 

 

Your data does not have any field that provide exact date of transaction. For calculated fields, you must need a field where you can do the calculation. Example, if you have a field as transaction date or Historical date, you can do the comparison with today's date in your report.

 

Please let us know if this helps.

 

Thanks,

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors