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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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. 

@elinevans 

 

Definitely, it is related to relationships.

 

Regards

Kumail Raza

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

Kumail
Post Prodigy
Post Prodigy

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.