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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors