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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
pigsinblankets
Helper II
Helper II

Add together two count visuals

Good Morning,

 

I have two card visuals both with filters on counting rows of data - is there a simple way to be able to sum these two visuals together on a new visual? 

 

Would I need to use a measure for this? 

 

I want to take visual A (count) + visual B (count) to create visual C (count) if it's easy and possible, suspect I'm missing something obvious! Basically adding two numbers together really, 

 

Hope you can help! 

2 ACCEPTED SOLUTIONS
zenisekd
Super User
Super User

Hi, write a simple dax measure = Count( column A ) + Count ( column B ). You are counting (referencing) columns in tables, not visuals. 🙂

zenisekd_0-1704874697797.png



Kudos and mark as solution appreciated.

View solution in original post

v-weiyan1-msft
Community Support
Community Support

Hi @pigsinblankets ,

 

Based on your description,
You might consider the following code to create a Measure.
My Sample:

vweiyan1msft_0-1705037674951.png

Sum of Count1 = [CountA] + [CountB]

OR

Sum of Count2 = CALCULATE(COUNT('Table'[Category]),FILTER('Table','Table'[Category] = "A")) 
                + 
                CALCULATE(COUNT('Table'[Category]),FILTER('Table','Table'[Category] = "B"))

Result is as below.

vweiyan1msft_1-1705037884049.png

 

Is this the result you expect?
For further details,please find attachment.
If I've misunderstood you, please provide detailed sample data and the results you are hoping for. We can better understand the problem and help you. Show it as a screenshot or excel. Please remove any sensitive data in advance.

 

Best Regards,
Yulia Yan

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

3 REPLIES 3
v-weiyan1-msft
Community Support
Community Support

Hi @pigsinblankets ,

 

Based on your description,
You might consider the following code to create a Measure.
My Sample:

vweiyan1msft_0-1705037674951.png

Sum of Count1 = [CountA] + [CountB]

OR

Sum of Count2 = CALCULATE(COUNT('Table'[Category]),FILTER('Table','Table'[Category] = "A")) 
                + 
                CALCULATE(COUNT('Table'[Category]),FILTER('Table','Table'[Category] = "B"))

Result is as below.

vweiyan1msft_1-1705037884049.png

 

Is this the result you expect?
For further details,please find attachment.
If I've misunderstood you, please provide detailed sample data and the results you are hoping for. We can better understand the problem and help you. Show it as a screenshot or excel. Please remove any sensitive data in advance.

 

Best Regards,
Yulia Yan

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

Thank you I have followed this advice and resolved this problem 🙂 @v-weiyan1-msft @zenisekd 

zenisekd
Super User
Super User

Hi, write a simple dax measure = Count( column A ) + Count ( column B ). You are counting (referencing) columns in tables, not visuals. 🙂

zenisekd_0-1704874697797.png



Kudos and mark as solution appreciated.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.