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

View all the Fabric Data Days sessions on demand. View schedule

Reply
webportal
Impactful Individual
Impactful Individual

Possible Bug? Measure returns different results on PBI Desktop and Service?

Hello,

 

This measure:

 

ValorLíquidoProduto = 
SUMX (
    FILTER ( 'order_product'; 'order_product'[EstadoEncomenda] = "confirmed" );
    (
        (
            order_product[order_product_price]
                * ( 1 - RELATED ( nomes_produtos[comissao_perc] ) )
                - RELATED ( nomes_produtos[comissao_fixo] )
        )
            / order_product[Câmbio AOA]
            - order_product[DescontoProporcional]
    )
        * 'order_product'[order_product_quantity]
)

Returns €75 for order id 1940 as you can see below in Power BI Desktop (which is correct):

 

Capturar3.PNG

And it returns €149 for the same order in Power BI Service:

 

Capturar4.PNG

 

Why? It is the same model!

 

Is this a bug? Can anyone help?

 

Here is the relationship between the 2 tables in the data model:

 

Capturar2.PNG

1 ACCEPTED SOLUTION
webportal
Impactful Individual
Impactful Individual

Nope, I've found out what the problem is: field [comissao_perc] was not converted into decimal number. So, in PBI Desktop, somehow the calculation is good, but in PBI Service it isn't (it seems this value is just ignored). So, there is a difference in treatment of values between Service and Desktop

View solution in original post

4 REPLIES 4
gipiluso
Resolver II
Resolver II

it is very strange, are you sure that PBI Desktop and Service are working on the same data?

 

Try to click Refresh button to update the date on the desktop.

 

 

 

 

webportal
Impactful Individual
Impactful Individual

Yes, they are exactly the same model, I've re-published and changed some visuals layout to test.

I think it could be a misalignment between data (not model9.

If you are in import I suggest click on refresh on your pbi desktop.

 

In case of  direct query verify that you are using the same dataset

webportal
Impactful Individual
Impactful Individual

Nope, I've found out what the problem is: field [comissao_perc] was not converted into decimal number. So, in PBI Desktop, somehow the calculation is good, but in PBI Service it isn't (it seems this value is just ignored). So, there is a difference in treatment of values between Service and Desktop

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors