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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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