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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
arimoldi
Resolver I
Resolver I

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 I
Resolver I

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 I
Resolver I

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 ?

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.