Forum Discussion

Shakeerm's avatar
Shakeerm
Icon for Helper II rankHelper II
6 years ago
Solved

How to show NULL on Card Visual when Filtered by a Slicer

Hey Mates,  Let me start by emphasizing the requirement, I want to show NULL on my Card Visual when it is filtered by the "Task Status" Slicer.    In my Table i have Job Numbers and each Job Numb...
  • parry2k's avatar
    parry2k
    6 years ago

    Shakeerm Wow, glad to hear it worked, I was not sure if you are adding this as a column. Read this post to understand the difference between Measures and Columns. It is very fundamental to work with Power BI and you get to know this.

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

     

     

     

  • MarcoPessina's avatar
    MarcoPessina
    6 years ago

    Hi Shakeerm ,

    I think that the reason why you are getting that error is because Power BI does not know which type of calculated column to create:

    -  "...." -> Text data type

    - COUNTROWS -> Number data type

     

    The error can be avoided by replacing ClosedTasks with CONVERT(ClosedTasks, STRING)

    Hope it helps.

    Cheers,

    Marco