Forum Discussion

rbreneman's avatar
rbreneman
Helper II
3 years ago
Solved

Help with concatenatex

Hi! I have a column chart visual as shown below. X-axis is Month Year from my date table. The numbers on the y-axis come from another table called Revenue Transactions, see example of table below. I...
  • vicky_'s avatar
    vicky_
    3 years ago

    In that case, what you can try is to add column to the date table instead of the other way around... 

    So something like this:

    MonthCloseCard = 
    VAR Helper = ADDCOLUMNS(VALUES('Date'[Month]), "In Progress Count", CALCULATE(COUNTROWS(FILTER(Data, Data[Status] = "In Progress"))))
    VAR Months = FILTER(Helper, [In Progress Count] > 0)
    VAR Solution = CONCATENATEX(
        Months, FORMAT('Date'[Month], "mmm yyyy "), ", "
    )
    // return Solution
    Return
    "The following months have not yet been closed: " & Solution & ". Data may not be accurate."

    I hope this helps!