Forum Discussion
Unable to display trend arrows in table visual.
- Anonymous9 years ago
Hi vijethshetty22,
Since measure no support to modify the data category, if you want to show the image, you have to use calculate column.
According to my research, your measure contians some dax formula which based on the filter effect of visual. Calculate column is an pretreatment column, if you directly use above formulas in calculate column, it will caused the issue.
To work through this issue, you can take a look at below calculated column formulas:
Total Sales 2 = SUMX(FILTER(ALL(Sales),[Date]=EARLIER(Sales[Date])),Sales[Sales]) Previous Month Sales 2 = SUMX(FILTER(ALL(Sales),[Date].[MonthNo]=EARLIER(Sales[Date].[MonthNo])-1),Sales[Sales]) % Change Sales 2 = DIVIDE([Total Sales 2],[Previous Month Sales 2],BLANK())-1 Sales Key 2 = IF([% Change Sales 2]>0,"https://thumb.ibb.co/ns9zQa/Up_Arrow.png", "https://thumb.ibb.co/ePvTJv/down_arrow.png")
Regards,
Xiaoxin Sheng
Hi vijethshetty22,
Since measure no support to modify the data category, if you want to show the image, you have to use calculate column.
According to my research, your measure contians some dax formula which based on the filter effect of visual. Calculate column is an pretreatment column, if you directly use above formulas in calculate column, it will caused the issue.
To work through this issue, you can take a look at below calculated column formulas:
Total Sales 2 = SUMX(FILTER(ALL(Sales),[Date]=EARLIER(Sales[Date])),Sales[Sales]) Previous Month Sales 2 = SUMX(FILTER(ALL(Sales),[Date].[MonthNo]=EARLIER(Sales[Date].[MonthNo])-1),Sales[Sales]) % Change Sales 2 = DIVIDE([Total Sales 2],[Previous Month Sales 2],BLANK())-1 Sales Key 2 = IF([% Change Sales 2]>0,"https://thumb.ibb.co/ns9zQa/Up_Arrow.png", "https://thumb.ibb.co/ePvTJv/down_arrow.png")
Regards,
Xiaoxin Sheng
- vijethshetty229 years agoFrequent Visitor
Hi Anonymous,
Thanks a lot. This helps. Solved my problem.