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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
elinevans
Helper I
Helper I

Calculated Column creating an empty slicer

I have data that looks something the table below.

I have added a calculated column on this as follows: 

ClientCurrentAge = DATEDIFF(Client[DateOfBirth], Client[Today], YEAR)
However when I put this into a slicer visulisation it just comes up blank. Any advice?
 elinevans_0-1652797875344.png

 

Client IDDate of Birth
123425/01/1998
321506/12/2005
7 REPLIES 7
elinevans
Helper I
Helper I

even if all the columns used in the measure are from the same table? 

elinevans
Helper I
Helper I

It's a part of a large databse and when I remove columns to hide sensitive data it then starts working. I wonder if it;s something to do with my relationships? Unfortunately I can't find a way to give you an example pbix file without sensitive data. 

Kumail
Impactful Individual
Impactful Individual

@elinevans 

 

Definitely, it is related to relationships.

 

Regards

Kumail Raza

LinkedIn: https://www.linkedin.com/in/kumail-raza-76508856/

Kumail
Impactful Individual
Impactful Individual

Hello @elinevans 

 

If you could send the sample .pbix file, it would help give you a quick solution.

 

Regards

Kumail Raza

rocky09
Solution Sage
Solution Sage

I have used the same DAX of yours. It is working for me.

Check if you have selected any of the data?

 

rocky09_0-1652801440451.png

 

rocky09
Solution Sage
Solution Sage

Can you check if you have changed the Dateofbirth column to Date? I see, it might be existing as Text

yes it's data type is Date

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.