Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I am new to Power BI and need some help from the experts. I have two different measure fields that essentially represents same business metrics but with two different DP (Decimal Points). The first measure "% of value" has 8 decimal places and the second one "% of Value 2 dp" has only 2 decimal places. I am trying to dynamically use these columns in a measure "% Value" either the first one or the 2nd one based on a slicer selection. I am able to get it but the issue is Power BI strips the decimal places to 2 during measure calculation. Is there a way to have all 8 decimal places returned without using FORMAT as it converts my measures to string?
Thank you!
Solved! Go to Solution.
Hi @rosu ,
This is not possible if you want the measure to display values with two decimal places and eight decimal places at the same time in Numeric type according to the slicer option. You can refer to the following blog to make it text type with FORMAT function, but this is something you want to avoid...
Power BI - Dynamic Formatting by Slicer Selection
Best Regards
Hi @rosu ,
This is not possible if you want the measure to display values with two decimal places and eight decimal places at the same time in Numeric type according to the slicer option. You can refer to the following blog to make it text type with FORMAT function, but this is something you want to avoid...
Power BI - Dynamic Formatting by Slicer Selection
Best Regards
Thank you Amit! Even with calculation group I see the measure is being stripped to 2 decimal place when I add it to the conditional calculation (based a separate selection slicer).
@rosu , Best to use calculation group there you can do different formatting
https://blog.enterprisedna.co/conditional-formatting-in-calculation-groups-power-bi/
Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : https://youtu.be/qMNv67P8Go0
User | Count |
---|---|
17 | |
11 | |
10 | |
9 | |
6 |
User | Count |
---|---|
23 | |
21 | |
20 | |
14 | |
10 |