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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
PeteyG
Frequent Visitor

Formula for total items minus total complete for a given day.

I am trying to figure out the DAX for a measurement that when ploted on a line graph against a Date table named "Date" would give you the total Activities remaining.  The below data would give you 20 Activities remaining before 3/8/2022.  On 1/2/2023 there would be 14 activities remaining.  If you looked at the link chart for June 30th 2024 there would be 6 activities remaining.  It can be end of month if that is easier.

 

Activity IDBL Finish
ACT-Con-001  3/8/2022
ACT-Con-002  3/11/2022
ACT-Con-003  7/14/2022
ACT-Con-004  11/16/2022
ACT-Con-005  11/19/2022
ACT-Con-006  1/22/2023
ACT-Con-0073/27/2023
ACT-Con-0085/30/2023
ACT-Con-0098/2/2023
ACT-Con-01010/5/2023
ACT-Con-01112/8/2023
ACT-Con-0122/10/2024
ACT-Con-0134/14/2024
ACT-Con-0146/17/2024
ACT-Con-0158/20/2024
ACT-Con-01610/23/2024
ACT-Con-01712/26/2024
ACT-Con-0182/28/2025
ACT-Con-0195/3/2025
ACT-Con-0207/6/2025
1 ACCEPTED SOLUTION
VN999
Resolver I
Resolver I

Assuming here in DAX measure activty remaning  table is named Activities and your Date table is named Date:

Activities Remaining =
VAR CurrentDate = MAX('Date'[Date])
RETURN
CALCULATE(
COUNTROWS('Activities'),
FILTER(
'Activities',
'Activities'[BL Finish] >= CurrentDate
)
)

View solution in original post

1 REPLY 1
VN999
Resolver I
Resolver I

Assuming here in DAX measure activty remaning  table is named Activities and your Date table is named Date:

Activities Remaining =
VAR CurrentDate = MAX('Date'[Date])
RETURN
CALCULATE(
COUNTROWS('Activities'),
FILTER(
'Activities',
'Activities'[BL Finish] >= CurrentDate
)
)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.