Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Only Show Data for Months with Data

I have a chart that shows a monthly accuracy %.

Dimension: =if(today()>FISCAL_YEAR_MONTH,FISCAL_YEAR_MONTH)

Expression:  $(vForecastVariance) = num((($(vForecastRound)-$(vActualRound))/($(vForecastRound))), '#,##0.0%')

Variable: vActualRound = round(sum({$}ACT_AMT), 1000)/1000 

I only want the data to show where sum($(vActualRound)))>0 so that if we don't have actuals posted for the current month, no % will show for that month.

My expression is set to show condtional: aggr(sum($(vActualRound)))>0, FISCAL_MONTH_YEAR) but this doesn't seem to be working because even though we don't have anything in ACT_AMT for November, I still see a % for November.

12-2-2015 1-53-09 PM.jpg

Any thoughts?

Thanks,

Cassandra

1 Solution

Accepted Solutions
Not applicable

You can write Calculated Dimension like below:

IF(AGGR( Sum(ACT_AMT) , FISCAL_YEAR_MONTH )>0,FISCAL_YEAR_MONTH)


Or change Your expression:


IF( $(vActualRound) > 0 , num((($(vForecastRound)-$(vActualRound))/($(vForecastRound))), '#,##0.0%') )



View solution in original post

1 Reply
Not applicable

You can write Calculated Dimension like below:

IF(AGGR( Sum(ACT_AMT) , FISCAL_YEAR_MONTH )>0,FISCAL_YEAR_MONTH)


Or change Your expression:


IF( $(vActualRound) > 0 , num((($(vForecastRound)-$(vActualRound))/($(vForecastRound))), '#,##0.0%') )