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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

simple calculation create a big FE task

Hello,

I'm in the process of optimizing one of our dataset, and I found a really strange issue with one of our measure.

 

Here the measure : 
[# Progressão Vendas]
VAR ca = SUM(vendasDiariasTop2080[MNT_CA])
VAR n_1 = vendasDiariasTop2080[# Vendas N-1 €]
RETURN DIVIDE(ca,n_1,1)-1

 

Capture d'écran 2023-11-22 165040.png

 

As you can see it generate a quite big FE task.

 

By tweaking the measure I found what cause this issue, it's the -1 in the return statement. When I remove it the issue is solved.

[# Progressão Vendas]
VAR ca = SUM(vendasDiariasTop2080[MNT_CA])
VAR n_1 = vendasDiariasTop2080[# Vendas N-1 €]
RETURN DIVIDE(ca,n_1,1)

 

Capture d'écran 2023-11-22 165430.png

 

Why does this happen ? And how can I solve it ? 

Thank you very much

1 REPLY 1
lbendlin
Super User
Super User

try if this is any better

 

[# Progressão Vendas] = 
VAR ca = SUM(vendasDiariasTop2080[MNT_CA])
VAR n_1 = vendasDiariasTop2080[# Vendas N-1 €]
VAR n_2 = DIVIDE(ca,n_1,1)
return n_2-1

 

Also check if you get DataCallBackIDs  in the query plan.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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