Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have the column "FTE $" that I need to show as a percent of the column total. I know of the quick way of just pulling in the same measure again and showing the value as a % of column total, but I need it formatted to 4 decimal places. Is there a way to do that or view the dax behind what the %CT FTE % is doing?
The formula for FTE $ is below.
Solved! Go to Solution.
Yes, you can create a custom measure to calculate the percentage of the column total and format it to four decimal places. Here's how:
Create a Measure for Total FTE $:
Total FTE $ = CALCULATE([FTE $], ALL('Combined Cube Query'))
Create the Percentage Measure:
FTE % of Column Total = DIVIDE([FTE $], [Total FTE $])
Format the Percentage Measure:
Right-click the FTE % of Column Total measure in the Fields pane.
Select Format and choose Percentage.
Set Decimal places to 4.
This will display the percentage of the column total for FTE $ with four decimal places. Since you cannot view the DAX behind the built-in quick calculations, creating a custom measure gives you control over both the calculation and formatting.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Thanks for the reply from VahidDM and PhilipTreacy , please allow me to provide another insight:
Hi, @Travis_Carroll
Could you please let me know if the responses from VahidDM and PhilipTreacy have resolved your issue? If they have, kindly accept their answers as the solution
To facilitate your understanding, I have created the following example:
Currently, the decimal places are set to retain 0 digits by default.
When we select the column (field) or measure that needs modification, the navigation bar will display either Column Tools or Measure Tools:
Enter this ribbon and modify the section highlighted in red:
Here are the final results:
Of course, you can also try using the FORMAT() function. For further details, please refer to the documentation.
FORMAT function (DAX) - DAX | Microsoft Learn
Please find the attached pbix relevant to the case.
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from VahidDM and PhilipTreacy , please allow me to provide another insight:
Hi, @Travis_Carroll
Could you please let me know if the responses from VahidDM and PhilipTreacy have resolved your issue? If they have, kindly accept their answers as the solution
To facilitate your understanding, I have created the following example:
Currently, the decimal places are set to retain 0 digits by default.
When we select the column (field) or measure that needs modification, the navigation bar will display either Column Tools or Measure Tools:
Enter this ribbon and modify the section highlighted in red:
Here are the final results:
Of course, you can also try using the FORMAT() function. For further details, please refer to the documentation.
FORMAT function (DAX) - DAX | Microsoft Learn
Please find the attached pbix relevant to the case.
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, you can create a custom measure to calculate the percentage of the column total and format it to four decimal places. Here's how:
Create a Measure for Total FTE $:
Total FTE $ = CALCULATE([FTE $], ALL('Combined Cube Query'))
Create the Percentage Measure:
FTE % of Column Total = DIVIDE([FTE $], [Total FTE $])
Format the Percentage Measure:
Right-click the FTE % of Column Total measure in the Fields pane.
Select Format and choose Percentage.
Set Decimal places to 4.
This will display the percentage of the column total for FTE $ with four decimal places. Since you cannot view the DAX behind the built-in quick calculations, creating a custom measure gives you control over both the calculation and formatting.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Why not duplicate the measure and format that to 4 decimal places?
Or Measure 2 = [FTE $] and format that to 4DC?
Regards
Phil
Proud to be a Super User!
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
12 | |
10 | |
6 |