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
pdaly
New Member

New Date column not giving Hierarchy or relative filtering

Hi All,

Late to the show, 1st time posting but loving Power BI.

I have a report linked to a SQL DB using Import (not direct query)

 

On one of the tables I added a colum with a DAX calculation:

NewDate = FORMAT(DATE(YEAR(TODAY()), Data[Month], 01), "dd/MM/yyyy")

This displays correct on Data view and on report, but when I try to filter a visual it does not give me a Hierarchy of Year,Qtr,Month,Day etc.
and because of this it is not giving me the option to use relative date filtering.
 
Is there something i'm missing? as all other DB date fields have the hierarchy and no problem
 
Thanks in advance,
Paul
 

 

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

Check the data type of the new column.  FORMAT will make it a text type but you want a date.

 

 

View solution in original post

2 REPLIES 2
pdaly
New Member

Thanks for the reply @HotChilli 
I removed the FORMAT part of the DAX Calc and set the column as Date and all worked 

cheers

 

HotChilli
Super User
Super User

Check the data type of the new column.  FORMAT will make it a text type but you want a date.

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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