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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
luizahenriques
Frequent Visitor

Help with a measure (CALCULATE)

Hello!

 

I have the follow measure:

 

Nota Anterior excluindo requisitos excluídos =
var statu = Medidas[StatusRequisito]
return CALCULATE([Nota Final Ciclo Anterior],filter(d_Requisito,statu<>"Excluído")).
 
 
I want to calculate the measure [Nota Final Ciclo Anterior] desregarding the status "Excluído".
This measure resulted in this table:
 
luizahenriques_0-1664498189060.png

But the total value was the same than the measure without the filter. Why? The measure works very well line to line but when it calculate the total, the filter don't work.

 

Thank you so much!

 

 
2 REPLIES 2
amitchandak
Super User
Super User

@luizahenriques , Make sure this is a measure, not a column

 

Nota Anterior excluindo requisitos excluídos =
var statu =
return CALCULATE(Sum(Medidas[Nota Final Ciclo Anterior]) ,filter(Medidas, Medidas[StatusRequisito],statu<>"Excluído"))

 

 

Sum if [Nota Final Ciclo Anterior] is column, else use [Nota Final Ciclo Anterior]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

This "[Nota Final Ciclo Anterior]" is a measure. But if I use CALCULATE([Nota Final Ciclo Anterior],filter(d_Requisito,statu<>"Excluído")). happens this problem with the total line. The total line calculation doesn't filter the statu <> "Excluído".

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.