Forum Discussion

cn4422's avatar
cn4422
Icon for Helper V rankHelper V
2 years ago
Solved

Calculate+Datesbeween in Line Graph

Hi,   I have created the following measure, which I then implemented in a line graph. However, the measuer is only showing the total sum for every month, and not the real sum/month.   Any ideas o...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi cn4422 

     

    Try using VALUES(Datum[Date]. [Month]) in your measure to ensure that the data is summarized by month.

    Count Forms Category Test 2023 by Month = 
    CALCULATE(
        COUNT('lead'[Forms category]),
        'lead'[Country] = "Test Form",
        'lead'[Forms category] = "Test Category",
        DATESBETWEEN(Datum[Date], DATE(2023, 1, 1), DATE(2023, 12, 31)),
        VALUES(Datum[Date].[Month])
    )

     

    Best Regards,
    Jarvis Tang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.