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! Learn more

Reply
siddrow
Helper III
Helper III

Card visualisation % of total instead of count

Hi

I need help creating a measure for a card. I need to count rows from a query column that contain the words "Completed", "Not Required" and "Not Yet Due" and then work out what percentage that is of the total of rows in that column (that column also contains words "Overdue and in Progress" and "Overdue and Not Yet Started").

 

E.g. the below makes up 100% and I would only want to show the percentage of the grand total on the card for completed, not required and not yet due, which would be 93%.

 

"Completed" = 28%

"Not Required" = 2%

"Not Yet Due" = 63%

"Overdue and in Progress" = 1%

"Overdue and Not Yet Started" = 6%

 

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

Drag the Status column to a Table visual and filter the visual on the 3 specific entries.  Write these measures:

Count = countrows(Data)

Completed count = calculate([count],data[status]="Completed")

Completed Count (%) = divide([completed count],[count])

Drag the third measure to a card visual.  Write measures 2 and 3 for the other status as well.

Drag the second 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

@siddrow just change the SUM ( Table[Column] ) to COUNTROWS ( 'Table' ) and it should be exactly what you want. Here it is below:

 

Filtered % = 

VAR _1 = CALCULATE ( COUNTROWS ( Table ) , NOT 'Table'[Status] in { "Overdue and in Progress" , "Overdue and Not Yet Started" } )
VAR _2 = _1 / CALCULATE ( COUNTROWS ( 'Table' ) , ALL ( 'Table' ) )

RETURN

_2

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

View solution in original post

11 REPLIES 11
Ashish_Mathur
Super User
Super User

Use a multi card visual


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I ended up creating another measure that added the 3 measures to give me 1 percentage as I don't want a multi card. Thanks for your help 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
TheoC
Super User
Super User

Hi @siddrow 

 

You can use the below measure to get what you're after:

 

Filtered % = 

VAR _1 = CALCULATE ( SUM ('Table'[Amount] ) , NOT 'Table'[Status] in { "Overdue and in Progress" , "Overdue and Not Yet Started" } )
VAR _2 = _1 / CALCULATE ( SUM ('Table'[Amount] ) , ALL ( 'Table' ) )

RETURN

_2

The output is as per below:

 

TheoC_0-1658802868914.png

 

Hope this helps! TheoC_1-1658802868917.png

 

Theo 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

TheoC
Super User
Super User

Hi @siddrow 

 

You can use the below measure to get what you're after:

 

Filtered % = 

VAR _1 = CALCULATE ( SUM ('Table'[Amount] ) , NOT 'Table'[Status] in { "Overdue and in Progress" , "Overdue and Not Yet Started" } )
VAR _2 = _1 / CALCULATE ( SUM ('Table'[Amount] ) , ALL ( 'Table' ) )

RETURN

_2

The output is as per below:

 

TheoC_0-1658802534379.png

Hope this helps! 🙂

Theo 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

This doesn't help sorry. I am not looking to create a table visualisation as this will affect my current dashboard layout. There are no numbers to count, only text within that query column. It needs to count total number of rows in that column and then give me the percentage of rows that have the text "completed", "not yet due" and "not required"

@siddrow just change the SUM ( Table[Column] ) to COUNTROWS ( 'Table' ) and it should be exactly what you want. Here it is below:

 

Filtered % = 

VAR _1 = CALCULATE ( COUNTROWS ( Table ) , NOT 'Table'[Status] in { "Overdue and in Progress" , "Overdue and Not Yet Started" } )
VAR _2 = _1 / CALCULATE ( COUNTROWS ( 'Table' ) , ALL ( 'Table' ) )

RETURN

_2

 

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Ashish_Mathur
Super User
Super User

Hi,

Drag the Status column to a Table visual and filter the visual on the 3 specific entries.  Write these measures:

Count = countrows(Data)

Completed count = calculate([count],data[status]="Completed")

Completed Count (%) = divide([completed count],[count])

Drag the third measure to a card visual.  Write measures 2 and 3 for the other status as well.

Drag the second 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi

 

Thanks for the reply. I do not want to create a table visual for this as it will affect my current dashboard layout. Is there no other way of doing it without having to show an additional visualisation?

I did not ask you to create a Tabel visual at all.  Read my reply carefully.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

I can only drag one measure into the card visualisation field, so how would I be able to total the completed, not yet due and not required in one card visual to give me a percentage?

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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