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

Two dates conditions question

Story Added = IF('Sprint Burndown'[Date].[Date] < 'Sprint Burndown'[Sprint Start Date].[Date], ('Sprint Burndown'[Story Sprint End]),0)
 
How would I add logic in addition, of this? If it falls between two dates basically
Story Added1 = IF('Sprint Burndown'[Date].[Date] < 'Sprint Burndown'[Sprint Start Date].[Date] && ('Sprint Burndown'[Date].[Date] > 'Sprint Burndown'[Sprint End Date].[Date] , ('Sprint Burndown'[Story Sprint End]),0)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

According to the design of Power BI Desktop, the same column data format can only be one, so it is recommended that the 0 of your function be Blank(), so that the Date will be displayed normally, if it is 0, it will all become a value, such as the following:

vyangliumsft_0-1669186448436.png

Here are the steps you can follow:

Measure.

Measure =
IF(
    MAX('Sprint Burndown'[Date])>MAX('Sprint Burndown'[Sprint Start Date])&&
    MAX('Sprint Burndown'[Date])<MAX('Sprint Burndown'[Story Sprint End]),
    MAX('Sprint Burndown'[Story Sprint End]),BLANK())

If you're using Measure, you'll need to click "Show itmes with no data", otherwise blank() will be omitted automatically.

vyangliumsft_1-1669186448437.png

vyangliumsft_4-1669186494427.png

Calculated column.

Column =
IF(
    'Sprint Burndown'[Date]>'Sprint Burndown'[Sprint Start Date]&&
    'Sprint Burndown'[Date]<'Sprint Burndown'[Story Sprint End],
    'Sprint Burndown'[Story Sprint End],BLANK())

vyangliumsft_3-1669186448438.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @Anonymous ,

According to the design of Power BI Desktop, the same column data format can only be one, so it is recommended that the 0 of your function be Blank(), so that the Date will be displayed normally, if it is 0, it will all become a value, such as the following:

vyangliumsft_0-1669186448436.png

Here are the steps you can follow:

Measure.

Measure =
IF(
    MAX('Sprint Burndown'[Date])>MAX('Sprint Burndown'[Sprint Start Date])&&
    MAX('Sprint Burndown'[Date])<MAX('Sprint Burndown'[Story Sprint End]),
    MAX('Sprint Burndown'[Story Sprint End]),BLANK())

If you're using Measure, you'll need to click "Show itmes with no data", otherwise blank() will be omitted automatically.

vyangliumsft_1-1669186448437.png

vyangliumsft_4-1669186494427.png

Calculated column.

Column =
IF(
    'Sprint Burndown'[Date]>'Sprint Burndown'[Sprint Start Date]&&
    'Sprint Burndown'[Date]<'Sprint Burndown'[Story Sprint End],
    'Sprint Burndown'[Story Sprint End],BLANK())

vyangliumsft_3-1669186448438.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

amitchandak
Super User
Super User

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors
Top Kudoed Authors