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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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

Power BI Monthly Update - August 2025

Check out the August 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.