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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

summing by date and ID how to

CALCULATE(SUM(LNApps_Facts[Application_Count]), DATESBETWEEN(LNApps_AppDateDim[ActualDate], 
DATE(2017,8,1), 
DATE(2017,8,31) 
))

I am trying to make a formula for summing up the number of applications between two dates. What I would also like to do is sum by an ID that is not in the formula above. How can I modify the formula to include a generic filter by id?

 

Thanks in advance 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Do you want to get sum value of each ID? If so, you can create a table visual using the ID field and the measure. Or you can create a card visual using the measure, then use the ID slicer to filter the card visual.
1.JPG3.JPG2.JPG

However, if you want to get sum value of a specific ID, create the measure using DAX below.

Measure = CALCULATE(SUM(LNApps_Facts[Application_Count]),DATESBETWEEN(LNApps_AppDateDim[Date],DATE(2017,8,1),DATE(2017,8,30)),FILTER(LNApps_Facts,LNApps_Facts[ID]="ID value"))

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous,

Do you want to get sum value of each ID? If so, you can create a table visual using the ID field and the measure. Or you can create a card visual using the measure, then use the ID slicer to filter the card visual.
1.JPG3.JPG2.JPG

However, if you want to get sum value of a specific ID, create the measure using DAX below.

Measure = CALCULATE(SUM(LNApps_Facts[Application_Count]),DATESBETWEEN(LNApps_AppDateDim[Date],DATE(2017,8,1),DATE(2017,8,30)),FILTER(LNApps_Facts,LNApps_Facts[ID]="ID value"))

Regards,
Lydia

Anonymous
Not applicable

Still looking for help on this

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors