Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Community
I'm using Power BI Desktop RS version May 2021 (A must from the customer). I have some visuals that use a Measure that returns different measures based on user selection (Cost if the user selects Cost from a slicer, Number of customers if the user chooses Customers from the same Slicer...).
Now, as the measure returns values with different natures, I had to manage the dynamic formatting of that measure using Calculation groups in Tabular Editor as follows :
If (
SELECTEVALUE('Measure Selection'[Measure Id], 1) = 1
, "$#,0.0" // Cost value with only one decimal
, "#,0" // Absolute Value without decimals
)
On most visuals, everything works well. However, I recently noticed that for visuals where the same field is dropped in the Axis and the Legend, the dynamic formatting is messed up and the visual shows the value to the smallest decimal available (My values have around 10 decimals)
Did anyone meet this kind of issue in the past?
Thank you for any help or any reference you could share
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 3 |