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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Total percentage in matrix going over 100% when crossfiltered

Hi ,I am using a matrix where I am calculating the percentage of a subgroup using this measure and selecting '% of column total'

when I cross filter the matrix from a other chart visual the Percentages are going over 100% ,help please.

 

measure :

Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),all(answer[AnswerTEXT])))*100,1)
 
tables:
question
questionidquestion
1which county you belong to
2how many years did you stay
table 2 :answer
answeridanswertext
2canada
31
42

table 3:fact

 

 

questionidansweridcount
121
111
121
111
221
221
211
 

 matrix:

 

Capture.PNG

2 ACCEPTED SOLUTIONS
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please try the following measures:

 

Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),All('FACT')))*100,1)

OR

Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),REMOVEFILTERS('answer')))*100,1)

 

If it doesn't work, would you please show us the pbix file by onedrive for business.

 

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

 

Best Regards,

Dedmon Dai

View solution in original post

Anonymous
Not applicable

thank you dedmond .I achieved this by removing the rounding  and * 100 from my old measure and changing the measure type to percentage and limiting to 2 digits and removed show value as percent to column total in values . 

but thanks for the replay ,your second solution is very close if i remove rounding and *100 .

 

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please try the following measures:

 

Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),All('FACT')))*100,1)

OR

Percentage = round(DIVIDE(COUNT('FACT'[COUNT]),CALCULATE(COUNT('FACT'[COUNT]),REMOVEFILTERS('answer')))*100,1)

 

If it doesn't work, would you please show us the pbix file by onedrive for business.

 

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

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

thank you dedmond .I achieved this by removing the rounding  and * 100 from my old measure and changing the measure type to percentage and limiting to 2 digits and removed show value as percent to column total in values . 

but thanks for the replay ,your second solution is very close if i remove rounding and *100 .

 

Anonymous
Not applicable

can anyone please help on this.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors