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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

scope increase and decrease

So i have a table with workitems,datechange,sprint id, sprint start , sprint end. i need to calculate the number of workitems that are added or removed ON or AFTER the second day of the sprint start (sprint =14days) 

|workitems| |sprint id| |datechange|                   sprint start      sprint end

20212  abckd1 22-01-2020 16:35:16  21-01-2020 03-02-2020
23233 abckd1 21-01-2020 16:35:16  21-01-2020 03-02-2020
20111 powi43 20-01-2020 16:35:1607-01-2020   20-01-2020
20999powi43 20-01-2020 16:35:1607-01-2020   20-01-2020
20111   powi43 16-01-2020 12:35:16   07-01-2020   20-01-2020
20212   powi43 18-01-2020 12:35:16   07-01-2020   20-01-2020

 

 

i just want to show 20212 ...can anyone help please?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please new a measure:

 

Measure = 
VAR _sprint_start = MAX('Table'[sprint start])
VAR _date_changed = MAX('Table'[datechange])
VAR  _days = _date_changed - _sprint_start
VAR _filter = IF(_days>1,1)
RETURN
_filter

 

You can use it as a filter for table visuals or use it to get the number of conditions met.

vcgaomsft_0-1659933904937.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Please show the exact result that you are expecting.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

it should just show the row with workitems with id- 20212 as it is added on the second the day of the sprint start

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous ,

 

Please new a measure:

 

Measure = 
VAR _sprint_start = MAX('Table'[sprint start])
VAR _date_changed = MAX('Table'[datechange])
VAR  _days = _date_changed - _sprint_start
VAR _filter = IF(_days>1,1)
RETURN
_filter

 

You can use it as a filter for table visuals or use it to get the number of conditions met.

vcgaomsft_0-1659933904937.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

Hi @Anonymous ,

 

New a calculated column:

the number of workitems = 
VAR _date = 'Table'[sprint start] + 1
VAR _num = CALCULATE(COUNT('Table'[workitems]),FILTER('Table','Table'[sprint start]>=_date))
RETURN
_num

Please check if it is what you want:

vcgaomsft_0-1659923528106.png

If you need to de-duplicate the result you can replace COUNT() with DISTINCTCOUNT(). If I have misunderstood your requirements, please post the expected output. This would be very helpful and much appreciated!

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

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