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
genehiggins
Frequent Visitor

perform math on dates from a mixed column

I have two tables in Power Bi that are related, People and Traits. 

People is just a litst of people

IDPerson
1Person A
2Person B

Traits has two columns, Trait Name and Trait value

Person IDTrait NameTrait Value
1Height72"
1date of birth1/1/1070
2Home TownPhiladelphia
2date of birth2/2/1980

 

The only thing I care about for this visualization is the date of birth. I want to show a list of everyone who had a birthday in the last two weeks. Using a slicer I'm able to filter and get just a list of dates, but of course they are text and I can't perform any comparisons on them. 

 

Can this be done at the slicer level? Or am I going to figure out how to make a new table/measure/query that finds and isolates all the dates so that it can be formatted properly? 

 

Thanks!

2 REPLIES 2
Anonymous
Not applicable

Hi @genehiggins ,

 

I think you may need two tables. A copy of your Traits table, then a power query to change the Traits value data type to Date, then remove error will do what you want.

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

read about DATEVALUE.  Make sure to use dates that Power BI recognizes.  1/1/1070 is not such a date.

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