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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
PhillipC1
Helper I
Helper I

Value shows inaccurate when converted to a percentage

Hello,

 

I have a value generated by a DAX formula which ultimately is pretty simple, but whenever I click to show the value as a percentage of column total, the values seem out of wack. This visual is filtered down to top 5 as well, just in case that matters.

 

Here is the table without the percentage showing. "Telematics Event by Employee" is generated by "Telematics Event" divided by "Count of EmployeeKey." As shown below, this seems accurate.

PhillipC1_0-1717765782683.png

 

Here is the option I am selecting to convert to a percentage.

PhillipC1_1-1717766042805.png

 

Once converted to a percentage, the values seem off. 

PhillipC1_3-1717766388561.png

 

When I utilize excel, this is closer to what I would expect to see.

PhillipC1_4-1717766769125.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @PhillipC1 
There is no option to format "automatic aggregations" if drag and drop.
So you need to create a dax measure for the wanted percentage.

You can use the Allselected DAX function for this goal.

For example if I have sales and categories this will look like :

% from total = DIVIDE([Total sales (K/$)], CALCULATE([total_sales],ALLSELECTED('Products'[Category])))
Ritaf1983_0-1717767974257.png

The pbix with the example is attached.
The video guide for using this Allselected is here :
https://www.youtube.com/watch?v=gD8yLTtyW1k&t=269s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @PhillipC1 
There is no option to format "automatic aggregations" if drag and drop.
So you need to create a dax measure for the wanted percentage.

You can use the Allselected DAX function for this goal.

For example if I have sales and categories this will look like :

% from total = DIVIDE([Total sales (K/$)], CALCULATE([total_sales],ALLSELECTED('Products'[Category])))
Ritaf1983_0-1717767974257.png

The pbix with the example is attached.
The video guide for using this Allselected is here :
https://www.youtube.com/watch?v=gD8yLTtyW1k&t=269s

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

 

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.