cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Measure to Sum Minutes and Filter by Year

Hello All,

 

I need some help in adding a new measure to sum a column (Number of Minutes) and filter by different column (Year).

 

Sample data in attached screenshot, I need your assitance to add a measure for total minutes in 2019 and and 2020. 

 

Looki

 

Line and Clustered column chart 

Columns - Number of calls (2019 & 2020)

Line - Number of Minutes (2019 & 2020)

 

Sample DataSample Data

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: Measure to Sum Minutes and Filter by Year

I Think this is works for you: 3 Measures for example.

 

Total Minutes 2019 = 
    CALCULATE(
      SUM(Table[Minutes]);
      Table[Year] = 2019
)

Total Minutes 2020 = 
    CALCULATE(
      SUM(Table[Minutes]);
      Table[Year] = 2020
)

Total Minutes 2019 & 2020 = 
    CALCULATE(
      SUM(Table[Minutes]);
      Table[Year] = in {'2019', '2020'}
)

 

View solution in original post

4 REPLIES 4
Highlighted
Frequent Visitor

Re: Measure to Sum Minutes and Filter by Year

I Think this is works for you: 3 Measures for example.

 

Total Minutes 2019 = 
    CALCULATE(
      SUM(Table[Minutes]);
      Table[Year] = 2019
)

Total Minutes 2020 = 
    CALCULATE(
      SUM(Table[Minutes]);
      Table[Year] = 2020
)

Total Minutes 2019 & 2020 = 
    CALCULATE(
      SUM(Table[Minutes]);
      Table[Year] = in {'2019', '2020'}
)

 

View solution in original post

Highlighted
Solution Sage
Solution Sage

Re: Measure to Sum Minutes and Filter by Year

Hi,

is the following chart what you want to  achieve?

13-02-_2020_12-48-51.png

 

Regards FrankAT

Highlighted
Frequent Visitor

Re: Measure to Sum Minutes and Filter by Year

Hi, Many thanks.. Exactly what I was looking for, thanks again. 

Highlighted
Frequent Visitor

Re: Measure to Sum Minutes and Filter by Year

Hi, 

 

Yes, similar to it, but separate line for 2019 Minutes and 2020 Minutes.

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors
Top Kudoed Authors