Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Matrix report trend value

 I have a matrix report which has following values. But , need to show trend as seperate ICON at the top of the Matrix report.   Trend should be Postive ,if All  are Zeros in the difference value ...
  • amitchandak's avatar
    6 years ago

    Anonymous , Try like

    if(
    countx(filter(summarize(Table, Table[state], "_1", sumx(Table, if(Table[source]-Table[Target]<0,1,0))),[_1]>0),[state]) >0, "Negative","Positive")
  • amitchandak's avatar
    amitchandak
    6 years ago

    Anonymous , Data is grouped at the state level first and then filtered and then aggregated gain

  • Anonymous's avatar
    Anonymous
    6 years ago

    Thanks a lot. Its working perfect after making the changes as per my requriment.