Forum Discussion

JipZonneveld's avatar
JipZonneveld
New Member
5 years ago
Solved

Stacked area graph missing legend values

Hello,   I have created a stacked area chart including nonconformity's with the change of statusses over time. However, some statusses are not present at certain times. For instance, a nonconformit...
  • MFelix's avatar
    MFelix
    5 years ago

    Hi JipZonneveld ,

     

    The issue is that using the same table context to calculate you value the status you are looking for does not exist in this case when you pick up your table and filter out the status concept on the 2/1/2021 the line is simply not there so it cannot return zero.

     

    In this case create a disconnecte table with the status and then make the following measure:

    Countof Status = 
    
    CALCULATE(COUNT('Table'[NCF]), FILTER(ALL('Table'[status]), 'Table'[status] = MAX('Status'[status])))+0

    Result below and in attach PBIX file.