Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Line Graph Showing Data Nothing Selected

I have these line graphs that are built with measures. When I select a filter, they display as expected.

However, when I clear the filter, I have lots of data showing on the graph(picture below). I would like nothing showing on the graph when nothing is selected. 

My Dax for the measures is something like this:

Action limit = 
VAR level= SELECTEDVALUE('Database'[Level])
RETURN
IF(level= BLANK(),BLANK(),
    SWITCH (
        level,
        "level 1",3520 ,
        "level 2", 3520,
        "level 3", 3520,
        "level 4",  352000,
        "level 5",  3520000,
        "level 6",  3520000 )
)

1 Reply