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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AJPF
Helper I
Helper I

adding external data to line chart

I have a database of students, each one of whom has a boolean flag indicating whether they are a young carer. 

 

I have created the following DAX formulae: 

 

Access Young Carer = CALCULATE('Access metrics'[Access], 'Access Data'[Young Carer] = 1)

 

Access Young Carer PC = divide(CALCULATE('Access Metrics'[Access Young Carer]), CALCULATE('Access metrics'[Access]))

 

to enable me to create a line chart, with year as the axis, showing year on year percentages of young carers. 

 

I also have the following (manually altered) external data, showing the percentage of young carers in our local area: 

 

Year    Care Leaver %
2016    1.01
2017    1.09
2018    0.97
2019    1.13
2020    1.09

 

How can I add this external data to my line chart?   I need to show a direct comparison between our young carers, and the local population. 

 

2 REPLIES 2
amitchandak
Super User
Super User

@AJPF , based on what I got you to need to have common year dimension and you use this column as a line with some aggregation

VijayP
Super User
Super User

@AJPF 

Create a Measure CALCULATE(Sum(External Value), Values(Yearin main Table), Year in External Table)

and this measure you can add to the Chart and it will be considered for report.

Please share your Kudoes and please mark this a solution if you find this as solution

also you can watch my videos at www.youtube.com/perepavijay




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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