Forum Discussion
Removing decimals from values while keeping for totals
- 1 year ago
Unfortunately, with live connection, you will need to apply the dynamic format string to the measure in the semantic model itself. Alternatively, you can create another measure that returns a formatted text instead
IF ( NOT ( HASONEVALUE ( Geo[Geo] ) ), FORMAT ( [my measure], "#,#.00" ), FORMAT ( [my measure], "#,#" ) )
Hi Justas4478
Apply dynamic format string to the measure being used in the viz. In the screenshot below, "#,#.00" is being applied to the column total wherein geo has no single value (as it has multiple at the total which are the indivdual geos) otherwise, "#,#".
- Justas44781 year ago
Post Prodigy
danextian I tried your solution as well, but same problem it requires column while I can only provide measure.
- danextian1 year ago
Super User
Apply dynamic format string to a measure but reference the column in your formula. You are referencing the measure the string is to be applied to and not to the dates.
- Justas44781 year ago
Post Prodigy
danextian I quickly looked in to and it seasm I cant create dinamic format since it is on for model measures and not ones using live connection.