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
inescosta
Advocate II
Advocate II

Using a slicer in only a half part of a measure

prazomediorecebimento(dias) = divide(
calculate(
SUM(cnt_DocumentoItens[valor_faturado_civa]);cnt_Documentos[Anulado]=FALSE())
-CALCULATE(sum(cnt_DocumentoRefItens[Bruto(civa)]);cnt_DocumentoTipo[codigo]="NC";cnt_Documentos[Anulado]=FALSE())
-(CALCULATE(SUM(cnt_DocumentoItens[valor_faturado_civa]);cnt_Documentos[Tipo]="VD")
+calculate(sum(cnt_DocumentoRecItens[bruto]);cnt_Documentos[Anulado]=false()));
CALCULATE(calculate(SUM(cnt_DocumentoItens[valor_faturado_civa]);cnt_Documentos[Anulado]=FALSE())
-CALCULATE(sum(cnt_DocumentoRefItens[Bruto(civa)]);cnt_DocumentoTipo[codigo]="NC";cnt_Documentos[Anulado]=FALSE());filter(cnt_Documentos;SAMEPERIODLASTYEAR(cnt_Documentos[Data]))))*365

 

 

imagem.png

Hello,

 

I have this a measure that is a division between two parcels, and I have a date slicer.

 

I want the first part of the division to only aplly the slicer as a MAX but sum all the values before.

And the second part I want to use the slicer has MIN and MAX (the normal way).

 

Thank you,

 

Inês Costa

 

 

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @inescosta,

 

Based on my test, this requirement is not supported. The slicer filters data table automatically using its max and min selections. If you disable the interactions between slicer and table, both max and min values won't affect data records. So, your requirement that only apply the slicer as a MAX for the first part of Divide expression cannot be achieved.

 

If you have any other question, please feel free to ask.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.