Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Travis_Carroll
New Member

% of Column Total Dax - PowerBI Matrix Visual

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? 

Travis_Carroll_0-1731018644584.png

 

 

The formula for FTE $ is below. 

 

FTE $ =
SUMX(
    SUMMARIZE(
        'Combined Cube Query',
        'Combined Cube Query'[Speedtype and Description],
        "TotalFTE", SUM('Combined Cube Query'[FTE]),       -- Calculates total FTE per group
        "TotalSalary", SUM('Combined Cube Query'[Salary])   -- Calculates total Salary per group
    ),
    IF(
        [TotalFTE] > 0,     -- Checks if TotalFTE for the group is greater than 0
        [TotalSalary],      -- If so, adds TotalSalary to the result
        0                   -- Otherwise, returns 0
    )
)

 

2 ACCEPTED SOLUTIONS
VahidDM
Super User
Super User

Hi @Travis_Carroll 

 

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!! 

LinkedIn|Twitter|Blog |YouTube 

View solution in original post

Anonymous
Not applicable

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

vlinyulumsft_1-1731304038020.png

To facilitate your understanding, I have created the following example:

vlinyulumsft_0-1731303854182.png

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:

vlinyulumsft_2-1731304060322.png

vlinyulumsft_3-1731304060323.png

Enter this ribbon and modify the section highlighted in red:

vlinyulumsft_4-1731304073568.png

Here are the final results:

vlinyulumsft_5-1731304073569.png

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.


 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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

vlinyulumsft_1-1731304038020.png

To facilitate your understanding, I have created the following example:

vlinyulumsft_0-1731303854182.png

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:

vlinyulumsft_2-1731304060322.png

vlinyulumsft_3-1731304060323.png

Enter this ribbon and modify the section highlighted in red:

vlinyulumsft_4-1731304073568.png

Here are the final results:

vlinyulumsft_5-1731304073569.png

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.


 

VahidDM
Super User
Super User

Hi @Travis_Carroll 

 

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!! 

LinkedIn|Twitter|Blog |YouTube 

PhilipTreacy
Super User
Super User

@Travis_Carroll 

 

Why not duplicate the measure and format that to 4 decimal places?

 

Or Measure 2 = [FTE $] and format that to 4DC?

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.