Forum Discussion

torsten_FO's avatar
torsten_FO
Icon for Helper I rankHelper I
4 years ago

Set a checkbox with DAX

Hi,

Is it possible with a DAX statement to set/klick a checkbox?

 

BR

Torsten

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  torsten_FO ,

    You can use the selectedvalue() function, when you click on the value in the slicer checkbox, the selectedvalue() function will get the value you clicked.

    https://docs.microsoft.com/en-us/dax/selectedvalue-function

    Here are the steps you can follow:

    1. Create measure.

    Measure =
    SELECTEDVALUE('Table'[Value])

    2. Result:

    If it is not the result you want, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

     

    Best Regards,

    Liu Yang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

    • torsten_FO's avatar
      torsten_FO
      Icon for Helper I rankHelper I

      Hi Liu,

      sorry, this is not that what I meen. I'll give you an example:

      I have a slicer with month names on my report. The challange is now to select the month what we currently have. I have an example file for that 😉 How can I put this in this post?