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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.