Forum Discussion

emmanmapada's avatar
emmanmapada
Frequent Visitor
6 years ago
Solved

SELECTED VALUE

Hi Guys,   I need a little help on SELECTEDVALUE. What I wanted to achieve is when I select a month, it will display: "For the month of <MONTH>, the TOTAL TRAFFIC is <SUM OF TOTAL TRAFFIC>, the ...
  • Anonymous's avatar
    Anonymous
    6 years ago

    emmanmapada I assume you have already created measure for total traffic and average session
    I would suggest you to use nested concatenate function 
    Measure = 

    VAR _selectedMonth = SELECTEDVALUE('Month Order'[Month],"")
    VAR _totaltraffic = SUM('Table'[Total Traffic])
    VAR _AveragePageSession = Average('table'[field])

    RETURN CONCATENATE("For the month of ",CONCATENATE(_selectedMonth,CONCATENATE(" the TOTAL TRAFFIC is ",CONCATENATE(_totaltraffic,CONCATENATE("AVERAGE PAGE PER SESSION IS ",_AveragePageSession)))))