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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
PDYHORA
New Member

Calculating 2 card values into 1 card

Hi,

 

I currently have 2 cards that sum up different information

1 - sums up the hours of a negative impact event

2 - sums up the total operating hours

 

I want to calculate these 2 values to get a percentage on a card (1/2), so that it moves depending on the various filters (month, user, etc.)

 

How would I go about doing this?

 

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Measures are the key to doing this.  Each card, you could create a measure that does 1 and 2.  Then you can create a 3rd measure that takes the result of 1 and 2 and does whatever you need.

 

If your cards have their own set filters, you could include these into your measures themselves as well.  An example might be:

NegativeImpact = CALCULATE(
	SUM('YourTable'[Hours]),
	'YourTable'[WasNegative] = 1	
)

Total Operating Hours = Sum('YourTable'[Hours])

Negative% = DIVIDE(
	[NegativeImpact],
	[Total Operating Hours]
)

View solution in original post

3 REPLIES 3
PDYHORA
New Member

Hi,

 

I currently have 2 cards that sum up different information

1- sums up the hours of a negative impact event

2- sums up the total operating hours

 

I want to calculate these 2 values to get a percentage on a card (1/2), so that it changes depending on the various filters (month, user, etc.).

 

How would I go about doing this?

 

Thanks!

 

Create a measure like:

 

Measure = DIVIDE(SUM([negativeimpactevent]),SUM([totaloperatinghours]))

Assuming you have those columns.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Measures are the key to doing this.  Each card, you could create a measure that does 1 and 2.  Then you can create a 3rd measure that takes the result of 1 and 2 and does whatever you need.

 

If your cards have their own set filters, you could include these into your measures themselves as well.  An example might be:

NegativeImpact = CALCULATE(
	SUM('YourTable'[Hours]),
	'YourTable'[WasNegative] = 1	
)

Total Operating Hours = Sum('YourTable'[Hours])

Negative% = DIVIDE(
	[NegativeImpact],
	[Total Operating Hours]
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.