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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
arimoldi
Resolver II
Resolver II

Line and Stacked Column Chart - Trend Line Percentage

Hi,

 

I want to insert a card/table that shows the percentage of increase/decrease of the trend line in a stacked column chart:

 

arimoldi_0-1699022782232.png

 

in this case there is a difference from 65 to 49, so 16 which means a decrease around 24%.

 

How can I achieve this with a measure in a card or table?

 

Thanks,

Andrea

 

1 ACCEPTED SOLUTION
arimoldi
Resolver II
Resolver II

I got it:

 

(CALCULATE ( COUNT ( Table[Element] ), ALLSELECTED(Table[Element]), MIN(Table[Date])= EE_FINDING_H[REFERENCE_DATE]
) - CALCULATE ( COUNT ( Table[Element] ), ALLSELECTED(Table[Element]), MAX(Table[Date])= Table[Date]
)) / (CALCULATE ( COUNT ( Table[Element] ), ALLSELECTED(Table[Element], MIN(Table[Date])= Table[Date]
) ) * 100
 
Hope it could helps others!
 
Thanks,
Andrea
 

View solution in original post

3 REPLIES 3
arimoldi
Resolver II
Resolver II

I got it:

 

(CALCULATE ( COUNT ( Table[Element] ), ALLSELECTED(Table[Element]), MIN(Table[Date])= EE_FINDING_H[REFERENCE_DATE]
) - CALCULATE ( COUNT ( Table[Element] ), ALLSELECTED(Table[Element]), MAX(Table[Date])= Table[Date]
)) / (CALCULATE ( COUNT ( Table[Element] ), ALLSELECTED(Table[Element], MIN(Table[Date])= Table[Date]
) ) * 100
 
Hope it could helps others!
 
Thanks,
Andrea
 
Ritaf1983
Super User
Super User

Hi @arimoldi  65 and 49 are totals of stacked colums ?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

yes exactly, there are 2 stacked colums where on the X there are the months and on Y there is the count of elements 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.