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
Anonymous
Not applicable

Power BI - Formula Error

Hi,

We are getting unexpected result (always 0) when trying to multiplicate an integer value by a decimal value.
Our Power BI Desktop is connected through direct query to an AWS Redshift database.

 

The scenario looks like this:

We have two tables (Sales and Products)

 

SALES  
Order IDProduct IDQtd Sales
112000
223000
324000
411000

 

 

Product  
Product IDProduct NamePrice Per Unit
1Milk0,0735
2Ice Cream0,0531
3Candies0,0135


Sales and product are related by Product ID column.
Then we are trying to create a new column on that will be the result of multiplication beetwen Qtd Sales and Price Per Unit. The formula looks like this: Billing = Sales[Qtd Sales] * RELATED(Product[Price Per Unit])
One interesting thing about this problem is that when we change the connection from direct to import, everything works fine.

 

Any suggestion?

 

Tks all

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

did you try  quick measure option to multiple both these fields?

 

Thnaks,

Tejaswi

Anonymous
Not applicable

Hi @Anonymous , 

Yes, I tried it.

It still returns zero for everything.

 

That sounds like a bug.

 

 

Tks

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.