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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
sprao
Helper I
Helper I

Power BI S-Curve

Hi

In the below image showing Actual values if not avalaible showing 0 in i need to show  insted of 0 Previois Cumilative value.

 

 

S_Curve.jpg

 

S-Curve(Actual) =
VAR A = CALCULATE(
            COUNT(Tasks[TaskActualFinishDate]),
            FILTER(ALLSELECTED(Tasks),
                        (Tasks[TaskFinishDate]) <= MAX(Tasks[TaskActualFinishDate]
                  )
            ))
VAR B = CALCULATE(COUNT('TaskBaselines'[TaskBaselineFinishDate]),
            FILTER(
                       ALLSELECTED('TaskBaselines'),
                       MAX(TaskBaselines[TaskBaselineFinishDate])
                  ))

VAR S_Curve = (A / B) * 100
   RETURN S_Curve
 
 
please help me return value if Var A  is empty then show previous Cumilative value
 
 

 

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @sprao ,

 

According to your code, I suggest you to try to create a Calendar table with continuous date in it.

For reference:

https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

Then create the measure by [Date] in this Calendar table.

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
v-rzhou-msft
Community Support
Community Support

Hi @sprao ,

 

According to your code, I suggest you to try to create a Calendar table with continuous date in it.

For reference:

https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions

Then create the measure by [Date] in this Calendar table.

 

Best Regards,
Rico Zhou

 

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

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors