Forum Discussion
zenisekd
Super User
2 years agoFORMAT function trouble
Hi, I have a situation, where I have a simple relation between product and sales order line. SO line contains subtotal value by order currency(currency sold to customer) and company curren...
- 2 years ago
I managed to fix this with dynamic formatting. Genius tool I forgot about.
https://www.sqlbi.com/articles/introducing-dynamic-format-strings-for-dax-measures/
Ahmedx
Super User
2 years agodid you try this
format (
calculate (
sum ( sale_order_line[Subtotal by Company Currency] ),
sale_order_line,sale_order_line[state] IN {"draft", "sent"}
)
, "# ##0.0 ") & SELECTEDVALUE(sale_order_line[company_currency_symbol])
zenisekd
Super User
2 years agoI did not, because it converts the value to text, which makes it useless for further calculations.
Also, it keeps multiplying the rows.