Forum Discussion

RyanLMoran's avatar
RyanLMoran
Helper I
5 years ago
Solved

Multi-Year cluster column chart structure question

Hello:         I'm looking to implement a clustered column chart that will show two pieces of data per year.  I want each year to show the number of labs that were in extistence and the total numbe...
  • MFelix's avatar
    5 years ago

    Hi RyanLMoran ,

     

    I assume that you have a LABID so you need to add the following two measures:

     

    NumLabs =
    COUNTROWS (
        FILTER (
            ALL ( Labs[Install date], Labs[ID] ),
            Labs[Install date] <= MAX ( Labs[Install date] )
        )
    )
    
    
    TotlSize =
    SUMX (
        FILTER (
            ALL ( Labs[Install date], Labs[ID], Labs[Lab size] ),
            Labs[Install date] <= MAX ( Labs[Install date] )
        ),
        Labs[Lab size]
    )

     

    final result below and in attach PBIX file: