Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe 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
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
Solved! Go to Solution.
Hi @rmaddala ,
Based on my research, you could try to use "Ultimate KPI CARD" custom visual to solve your problem:
Sample data:
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:
You could also download the pbix file to have a view.
Regards,
Daniel He
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
Hi @rmaddala ,
Based on my research, you could try to use "Ultimate KPI CARD" custom visual to solve your problem:
Sample data:
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:
You could also download the pbix file to have a view.
Regards,
Daniel He
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 44 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |