Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only

Case statement not working as expected (Dashboard)

  • 1.  Case statement not working as expected (Dashboard)

    Posted 02/25/20 04:25 AM
    Hi Team. I have this calculation that is working but not as expected. When I select ANZ and Korea, it gives the correct % but if there's no selection (not ANZ or Korea), it's not showing 38% but only 9%. Seems the Else statement is not being called. Any suggestions?

    CASE AP_Dashboard_xlsx.Market
    WHEN 'ANZ' THEN (total( AP_Dashboard_xlsx.Headcount for AP_Dashboard_xlsx.Market = 'ANZ') / (ANZ_Forecast_HC )) * 100
    WHEN 'KOREA' THEN (total( AP_Dashboard_xlsx.Headcount for AP_Dashboard_xlsx.Market = 'KOREA') / (Korea_Forecast_HC )) * 100
    ELSE (total(AP_Dashboard_xlsx.Headcount / 7305)) * 100
    END




    ------------------------------
    Camilo Carlo Mendiola
    Data Analyst
    IBM
    ------------------------------

    #CognosAnalyticswithWatson