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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
rmaddala
New Member

Need help Card visual

Hi

 

I have a requirement to show Card visual with Current_Year and Prior_Year value one below other

 

And I need to compare values and change color to Red/Green/Amber

 

Normally, a card visual shows only one value and no conditional formatting  ailable.

 

How can I achieve my requirement

 

Please suggest

 

Regards

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @rmaddala ,

Based on my research, you could try to use "Ultimate KPI CARD" custom visual to solve your problem:

Sample data:

1.PNG

Create below measures:

Current year = CALCULATE(SUM(Table2[Value]),FILTER('Table2',YEAR('Table2'[Date])=YEAR(NOW())))
Last year = CALCULATE(SUM(Table2[Value]),FILTER('Table2',YEAR('Table2'[Date])=YEAR(NOW())-1))
Difference = ([Current year]-[Last year])*1.1

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
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

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @rmaddala ,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @rmaddala ,

Based on my research, you could try to use "Ultimate KPI CARD" custom visual to solve your problem:

Sample data:

1.PNG

Create below measures:

Current year = CALCULATE(SUM(Table2[Value]),FILTER('Table2',YEAR('Table2'[Date])=YEAR(NOW())))
Last year = CALCULATE(SUM(Table2[Value]),FILTER('Table2',YEAR('Table2'[Date])=YEAR(NOW())-1))
Difference = ([Current year]-[Last year])*1.1

Result:

1.PNG

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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