Forum Discussion

elinevans's avatar
elinevans
Helper I
4 years ago

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?
 

 

Client IDDate of Birth
123425/01/1998
321506/12/2005

7 Replies

  • rocky09's avatar
    rocky09
    Solution Sage

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

  • rocky09's avatar
    rocky09
    Solution Sage

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

    Check if you have selected any of the data?

     

     

  • Kumail's avatar
    Kumail
    Impactful Individual

    Hello elinevans 

     

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

     

    Regards

    Kumail Raza

  • 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. 

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