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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Junaid11
Helper V
Helper V

Small multiple should be 100% for each column

Hello,
I have two columns in a table Years band and Status. I want to see status count % against each status but as I use years band as small multiple it divides the % further. I want each column in small multiple like in given picture should show % out of hundred like in Years 11-20 Years it should be showing 100% as there is only No option in count %. Below is the table and picture I have of the visuals. 
Each small multiple column should be out of 100%.

Years BandStatus
1-2 YearsYes
2-10 YearsUnsure
1-2 YearsUnsure
11-20 YearsNo
2-10 YearsUnsure
1-2 YearsNo
2-10 YearsUnsure
2-10 YearsYes
1-2 YearsUnsure
1-2 YearsNo
2-10 YearsUnsure
2-10 YearsYes
2-10 YearsNo
1-2 YearsNo

sdafwegwegqwe.PNG

Your help would be highly appreciated.
Thank you

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Junaid11 ,

 

It is necessary to change the context filter in order to solve this problem.
Here is a formula that you can use:
Percentage in age group = count('Table'[Status]) / CALCULATE(COUNT('Table'[Status]),ALLEXCEPT('Table','Table'[Years Band]).
Put the measure on the X axis.
For your convenience, I have attached a picture

Ritaf1983_0-1680405325444.png

you can also download a sample file from link:
sample file 

If my answer was helpful please give me a Kudos and accept as a Solution.

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @Junaid11 ,

 

It is necessary to change the context filter in order to solve this problem.
Here is a formula that you can use:
Percentage in age group = count('Table'[Status]) / CALCULATE(COUNT('Table'[Status]),ALLEXCEPT('Table','Table'[Years Band]).
Put the measure on the X axis.
For your convenience, I have attached a picture

Ritaf1983_0-1680405325444.png

you can also download a sample file from link:
sample file 

If my answer was helpful please give me a Kudos and accept as a Solution.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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