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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.