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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Kikemx90
Frequent Visitor

% of column total for measure in formula for calculation group

Hello,

 

Could you please help me or indicate me if there is a way to get the % of column total for a measure based in calculation group and calculation items for 2 different months as following:

Kikemx90_0-1661461934095.png

I need a formula to get the same value that % of column total is getting but since it is calculation group I am having a hard time, 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Kikemx90 ,

I created some data:

vyangliumsft_0-1661741463175.png

Here are the steps you can follow:

1. Create measure.

Measure 2 =
DIVIDE(
COUNTX(FILTER(ALLSELECTED('Table'),'Table'[CONTR ACCOUNT Period]=MAX('Table'[CONTR ACCOUNT Period])&&'Table'[Group]=MAX('Table'[Group])),[Amount]),
COUNTX(ALL('Table'),[Amount]))

2. Result:

vyangliumsft_1-1661741463179.png

 

If you need pbix, please click here.

% of column total for measure in formula for calculation group.pbix

 

If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.

 

Best Regards,

Liu Yang

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

1 REPLY 1
Anonymous
Not applicable

Hi  @Kikemx90 ,

I created some data:

vyangliumsft_0-1661741463175.png

Here are the steps you can follow:

1. Create measure.

Measure 2 =
DIVIDE(
COUNTX(FILTER(ALLSELECTED('Table'),'Table'[CONTR ACCOUNT Period]=MAX('Table'[CONTR ACCOUNT Period])&&'Table'[Group]=MAX('Table'[Group])),[Amount]),
COUNTX(ALL('Table'),[Amount]))

2. Result:

vyangliumsft_1-1661741463179.png

 

If you need pbix, please click here.

% of column total for measure in formula for calculation group.pbix

 

If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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