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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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