Forum Discussion

gemcityzach's avatar
gemcityzach
Helper IV
2 years ago
Solved

Stacked Bar or Line Chart Using Multiple Data from Same Table along with a Date/Calendar Table

Hello,   I'm trying to plot various types of time intelligence metrics on the same chart. I have a single table, that is a SharePoint list, that has four date fields. I also have a Calendar/Date ta...
  • Alex87's avatar
    2 years ago
    Count Closed =
    CALCULATE(
        COUNT(Data[Closed]),
        USERELATIONSHIP(Dates[Date], Data[Closed]))
     
    Count Created =
    CALCULATE(
        COUNT(Data[Created]),
        USERELATIONSHIP(Dates[Date], Data[Created]))
     
    As you have an active relationship on Date created you can use directly as a DAX Measure = 
    COUNT(Data[Created]) , but I like to keep the consistency between the formula patterns. It will work either way.
     
    I slightly changed your sample data as the count was the same between the two

     

    If it answers your query please mark my post as a solution