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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to display the last value of a measure based on a condition

Hello everyone,

 

I am pretty new to Power BI and sorry if my question is so simple. I have a table like this:

 

 Calculated ColumnCalculated ColumnCalculated ColumnMeasureColumnMeasureMeasure
FechaSolicitadoCubiertoPendienteAcumuladoTeoricoCoberturado% coberturado
1/1/2022110022100%
1/1/2022110022100%
1/1/202221112150%
2/2/202212-1022100%
2/2/202212-1-123

150%

 

 

 

Formulas on excel are:

 

Pendiente: Solicitado - Coberturado 

Coberturado: Teórico - Acumulado 

% Coberturado: Coberturado /Teórico

 

My expected table in a dashboard is this:

 

 Calculated ColumnCalculated ColumnCalculated ColumnMeasureColumnMeasureMeasure
FechaSolicitadoCubiertoPendienteAcumuladoTeoricoCoberturado% coberturado
1/1/202243116583%
2/1/202224-2-145125%

 

I would like to show the last value of the column "%Coberturado" based of the column Fecha in a card visual which is 125% but since it's a measure i can't. 

 

Thanks!!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please try:

Coberturado 2 = SUMX('Table',[Coberturado])
% Coberturado 2 = [Coberturado 2]/SUM('Table'[Teorico])

Eyelyn9_0-1651562893095.png

Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

Refer to:

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

Best Regards,
Eyelyn Qin
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 ,

 

Please try:

Coberturado 2 = SUMX('Table',[Coberturado])
% Coberturado 2 = [Coberturado 2]/SUM('Table'[Teorico])

Eyelyn9_0-1651562893095.png

Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.

Refer to:

How to provide sample data in the Power BI Forum - Microsoft Power BI Community

How to Get Your Question Answered Quickly - Microsoft Power BI Community

 

 

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

tom480
Resolver I
Resolver I

Hi there!

 

Let me know if this works for you.  Instead of a measure, make it a calculated column.  Tom

 

tom480_0-1651103254915.png

 

 

CalcCol1 = DIVIDE(Table2[Coberturado], Table2[Teorico])

 

Card1 =
CALCULATE (
AVERAGE(Table2[CalcCol1]),
FILTER ( VALUES ( Table2[Fecha] ), [Fecha] = MAX ( Table2[Fecha] ) )
)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.