Forum Discussion

Jan845's avatar
Jan845
Helper I
3 years ago
Solved

Increment data in chart with buttons

Hi guys, I hope you are well   I have one doubt . It's possible to add more data into a chart with buttons?   My Dashboard    I have 4 buttons with bookmarks action , when i click change...
  • Greg_Deckler's avatar
    Greg_Deckler
    3 years ago

    Jan845 Right, so use Type in your slicer. Then do something like this with your measures:

    Measure =
      VAR __Selected = DISTINCT('Table'[Type])
    RETURN
      IF("Student" IN __Selected, <your calculation goes here>, BLANK())

    Thus, each measure will return BLANK and thus no line if in this case Student isn't selected as a Type for example. This will have the effect of either showing or not showing each measure in your visual depending on the slicer selections.