Forum Discussion

harirao's avatar
harirao
Icon for Post Prodigy rankPost Prodigy
5 years ago

Comparison Icon for Trend wow(week over week)

Hello All,

 

Please note, a trend icon created to comparing current with previous week, below column highlighted in Red is in % format.
Decimals is considering automatically for WoW(Week over Week) trend
Current week it is 48.37% & Previous week it is 47.62% , in format if i consider 0 decimal it is rounding off to 48%, regarding comparison for current week trend it is showing UP "▲"  arrow, but it was suppose to be Equal "--"

Measure used:

Test WOW2 = VAR prv_wk =DATEADD(Query1[reportdate],-7,DAY)
Return
CALCULATE([% 6+ weeks visibility], FILTER(ALL(Query1),Query1[reportdate] in prv_wk &&
Query1[subregion]=SELECTEDVALUE(Query1[subregion])),
FILTER(ALL(Query1),Query1[1MUSD Flag]=1 && Query1[PipelineExclusionIndicator]="N"))

test_Wow2 = Query1[> 6 Weeks Visibility % of Regional Total]-[Test WOW2]

Measure used in above table:
WOWTrend2 = IF([test_Wow2]<0,"▼",IF([test_Wow2]>0,"▲","--"))

 

Thanks for you Support.

 

Regards,

 

2 Replies