Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I am trying to built a dynamic kaplan meier indicateur without create a physical table as it was done here https://community.powerbi.com/t5/Desktop/Kaplan-Meier-Survival-Curves/m-p/330081
To do that, I split each step of calculation and plot them into power visual frame, here below :
All the columns are calculatued measures except "IndiceTemps" that is a column from the original table.
Almost all the measures calculated returned me the result I expected except the measure "SumLnKaplanMeier".
I have just tried to calculate a running sum of LnKaplanMeier, but something is going wrong.
The values I expected to have for that measure in this views are successively : -0.03 ; -0.07 ; -0.11 ; -0.17 ; -0.23 ...
Here the formula for each one:
Solved! Go to Solution.
Hi @Anonymous
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Has you referred this is a question about context, since you are not making the selection of the energie and energie type on your calculation the context get's missed and the sum is made for all IndiceTemps.
1_SumLnKaplanMeier = SUMX (
FILTER (
SUMMARIZE (
ALLSELECTED ( reporting_courbe_de_survie_contrat_test ),
reporting_courbe_de_survie_contrat_test[1_IndiceTemps],
reporting_courbe_de_survie_contrat_test[energie],
reporting_courbe_de_survie_contrat_test[type_energie],
"@KaplanMeier", [1_LnKaplanMeier]
),
reporting_courbe_de_survie_contrat_test[1_IndiceTemps]
<= MAX ( reporting_courbe_de_survie_contrat_test[1_IndiceTemps] )
&& reporting_courbe_de_survie_contrat_test[energie]
= MAX ( reporting_courbe_de_survie_contrat_test[energie] )
&& reporting_courbe_de_survie_contrat_test[type_energie]
= MAX ( reporting_courbe_de_survie_contrat_test[type_energie] )
),
[@KaplanMeier]
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 47 | |
| 44 |