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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SAGUILAR
Frequent Visitor

Show the percentage value of a cell in a card

Hello, community.

 

Please, I'm trying to show the % value of "RECEIVED, POSTED" status in one card. I created the card using the same columns but when I filter the status, the result show "100%" not "29.16%"

SAGUILAR_0-1688654941982.png
This is the result of the card I created after filtered.

SAGUILAR_1-1688655166464.png

Thanks!

 

 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @SAGUILAR ,

 

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

(1) This is my test data. 

vtangjiemsft_0-1689574227319.png

(2) We can create a measure. 

% count = 
var _a=COUNTROWS(ALL('Table'))
var _b=COUNTROWS(FILTER(ALL('Table'),'Table'[status]=MAX('Table'[status])))
return DIVIDE(_b,_a,0)

(3) Then the result is as follows.

vtangjiemsft_1-1689574331641.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

4 REPLIES 4
v-tangjie-msft
Community Support
Community Support

Hi @SAGUILAR ,

 

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

(1) This is my test data. 

vtangjiemsft_0-1689574227319.png

(2) We can create a measure. 

% count = 
var _a=COUNTROWS(ALL('Table'))
var _b=COUNTROWS(FILTER(ALL('Table'),'Table'[status]=MAX('Table'[status])))
return DIVIDE(_b,_a,0)

(3) Then the result is as follows.

vtangjiemsft_1-1689574331641.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. 

NishPatel
Resolver II
Resolver II

Select the Card visual and apply Status filter only to this visual and Select desired status.

NishPatel_0-1688656642944.png

NishPatel_1-1688656673011.png

 

Hello, 
I've been trying to do it but I'm still getting the same number. Something that I see is that when I remove the option "Show as percentage of total" the number will be correct (571).

SAGUILAR_0-1689010769308.png

 

Thank you!

Kishore_KVN
Super User
Super User

Hello @SAGUILAR , 

Its happening because when you select a particular value it will always show 100% for that value. So you have to create a measure for it. 

Measure looks as below:

% Contribution = 
Var Num = Calculate(SUM(Sales))
Var Den = Calculate(SUM(Sales),ALLSELECTED(STATUS))
Return
DIVIDE(Num,Den,Blank())

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

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.