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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Chandrashekar
Resolver III
Resolver III

Dax : % of row total

Hello,

 

This is regarding to the link which posted earlier.

Link: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dax-of-row-total/td-p/3186082

PBIX: Sample File 

For S4 I need to get 50%(Ach) and 50%(Bre) but am getting wrong result. Kindly check on it

Chandrashekar_0-1684323411922.png

Regards,

Chandrashekar B

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Chandrashekar ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create two measures. 

% of row total Bre = DIVIDE( MAX('Table'[Bre]),MAX('Table'[Ach]),0)
% of row total Ach = 1-'Table'[% of row total Bre]

(3) Then the result is as follows.

vtangjiemsft_0-1684476814418.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

6 REPLIES 6
Anonymous
Not applicable

Hi @Chandrashekar ,

 

From the previous post, the logic of the calculation is [of row total(Ach)]=ach/ach+bre and [of row total(Bre)]=bre/ach+bre, so for s4, ach=4/(4+2)=4/6=0.6667, which seems to be correct. Can you provide the logic for the calculation?

 

Best Regards,

Neeko Tang

Hello,

 

Can you help me in correcting DAX.

 

Regards,

Chandrashekar B

Anonymous
Not applicable

Hi @Chandrashekar ,

 

From the previous post, the logic of the calculation is [of row total(Ach)]=ach/ach+bre and [of row total(Bre)]=bre/ach+bre, so for s4, ach=4/(4+2)=4/6=0.6667, which seems to be correct. Can you provide the logic for the calculation?

 

Best Regards,

Neeko Tang

Hello,

 

For S4 Ach is 4 and Bre is 2 so I should get 50% achieved.

 

Regards,

Chandrashekar B

Anonymous
Not applicable

Hi @Chandrashekar ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create two measures. 

% of row total Bre = DIVIDE( MAX('Table'[Bre]),MAX('Table'[Ach]),0)
% of row total Ach = 1-'Table'[% of row total Bre]

(3) Then the result is as follows.

vtangjiemsft_0-1684476814418.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

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

Hello,

 

Thank you 🙂

Regards,

Chandrashekar B

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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