cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
diagnosed Frequent Visitor
Frequent Visitor

Display percentage of values within a single column as a card

I have a column in my table titled "Resolved" ('Table'[Resolved]), which has three values: "TRUE", "FALSE", and (Blank) - I'm trying to build a measure that takes the total count of "TRUE" and "FALSE", finds the percentage of "TRUE", and displays that percentage to a card (i.e. there are 95 "TRUE", 5 "FALSE", and the end result is a card showing "95%").

 

The furthest I've gotten is filtering for "TRUE", and taking that calculation and trying to divide it by COUNTA('Table'[Resolved]) which I'm sure is the wrong way to do it, primarily because it always returns a value of 1.0. 

 

Any guidance or direction is appreciated, as this feels conceptually simple but evades my grasp.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Display percentage of values within a single column as a card

Hi @diagnosed I reorder it my Idea... Make a measure to count FALSE and TRUE and play wiyh the card level filters (One card filtered by False and the otherone by TRUE)... and you will get what you are looking for!

 

TAKE A LOOK AT THE PIC Smiley Happy the measure is:

 

COUNT TRUE OR FALSE DIVIDED BY TOTAL = 
DIVIDE(COUNTA('TRUE OR FALSE'[TRUE OR FALSE]);
CALCULATE(COUNTA('TRUE OR FALSE'[TRUE OR FALSE]);
ALL('TRUE OR FALSE'[TRUE OR FALSE])))

 

Captura7.JPG

2 REPLIES 2
Highlighted

Re: Display percentage of values within a single column as a card

Hi @diagnosed I reorder it my Idea... Make a measure to count FALSE and TRUE and play wiyh the card level filters (One card filtered by False and the otherone by TRUE)... and you will get what you are looking for!

 

TAKE A LOOK AT THE PIC Smiley Happy the measure is:

 

COUNT TRUE OR FALSE DIVIDED BY TOTAL = 
DIVIDE(COUNTA('TRUE OR FALSE'[TRUE OR FALSE]);
CALCULATE(COUNTA('TRUE OR FALSE'[TRUE OR FALSE]);
ALL('TRUE OR FALSE'[TRUE OR FALSE])))

 

Captura7.JPG

diagnosed Frequent Visitor
Frequent Visitor

Re: Display percentage of values within a single column as a card

Not only did that do it, but it did it far cleaner than I was remotely approaching and gives me a far better understanding of how the DIVIDE function can be used. Sincerely, thank you!