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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Show percentage in a matrix with 2 levels

Dear everyone,

 

I have checked a solution to my problem in all the messages, but I didn't find it. I hope that someone can help me.

 

I have this sort of table:

CodeMonth
MarketRules
T1JanuaryGermanyFollow rules
T2JanuaryItalyDon't follow rules
T3JanuaryGermanyFollow rules
T4JanuaryGermanyDon't follow rules
T5JanuaryItalyDon't follow rules
T6JanuaryItalyFollow rules
T7FebruaryGermanyFollow rules
T8FebruaryGermanyDon't follow rules
T9FebruaryItalyFollow rules
T10FebruaryItalyDon't follow rules

 

For sure, my table has thousands of lines and hundred of Market. I want to show a matrix with the percentages for each Market (and not the total of the column) like below:

 

 JanuaryFebruary
Germany100%100%
- Follow rules67%50%
- Don't follow rules33%50%

Italy

100%100%
- Follow rules33%50%
- Don't follow rules67%

50%

 

I have created a matrix with these info:

Rows:

- Market

- Rules

Colums:

- Month

Values:

- Count of "Rules" and Shows values as Percentage of column total

 

But it shows the percentage of all the column, which is not what I want as I have hundred of markets...

 

Can you please help me ?

 

Thank you very very much for your help

 

Isabelle

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous here are the measures

 

c = COUNTROWS ( Table )

% = DIVIDE( [c], CALCULATE ( [c], ALL ( Table[Rules] ) ))

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

4 REPLIES 4
parry2k
Super User
Super User

@Anonymous here are the measures

 

c = COUNTROWS ( Table )

% = DIVIDE( [c], CALCULATE ( [c], ALL ( Table[Rules] ) ))

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Dear @parry2k 

Thank you so so much for your super quick answer. It works !!! I understand know the measures...

I have only a problem, it shows "0.13" instead of "13%". I have checked in the "Field formatting"/"Display unit" part, but it allows only "Thousands, Millions, ...". Do you know how to display them as "real" percentages ?

Thank you very much and best regards

Isabelle

@Anonymous the measure/column you used to show values, what is the format of that measure, if that is %, it will show in %, and you can change the format of column/measure by selecting it in the field pane, on right hand side and change format on measure/column tools on the menu.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Dear @parry2k 

Thank you very much ! In fact, I have used another measure to put the right format:

Measure = FORMAT([measure-percent],"###%")

Thank you very much for all your help on this topic !

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors