Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How to get total per day for specific category

I need a calculated column to get the total calls per day for a specific campaign. 

I've tried: 

xyz calls = CALCULATE(SUM('Call Stats'[CALLS]), ALLSELECTED('Call Stats'[DATE]),FILTER('T1 Client Stats', 'Call Stats'[CAMPAIGN] = "xyz"))
 and 
xyz calls = CALCULATE(SUM('Call Stats'[CALLS]), ALLEXCEPT('Call Stats','Call Stats'[DATE]),FILTER('Call Stats', 'Call Stats'[CAMPAIGN] = "xyz"))
 
but both keep giving me the total for all days instead of the total for each day.
 
Sample Table:
DATECAMPAIGNCALLS
4/1/2023xyz4
4/1/2023xyz5
4/1/2023abc12
4/1/2023edg1
4/2/2023xyz6
4/2/2023edg2
1 ACCEPTED SOLUTION
vicky_
Super User
Super User

You need to keep the filter on the campaign name, rather than the date filter. I believe you want to change your calc to something like: 

CALCULATE(SUM('Call Stats'[CALLS]), ALLEXCEPT('Call Stats','Call Stats'[CAMPAIGN]))

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

You need to keep the filter on the campaign name, rather than the date filter. I believe you want to change your calc to something like: 

CALCULATE(SUM('Call Stats'[CALLS]), ALLEXCEPT('Call Stats','Call Stats'[CAMPAIGN]))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.