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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Combining results from many tables into one visual

Hi,

I am trying to create a quarterly scorecard with results from 4-5 different tables and then matching them with their quartley goals. I have one to many relationships with the Goals to each of the data tables but I am trying to think of the best way of aggregating this.

I can't seem to use related but am thinking there must be a concise way of taking the data tables and matching it up to the appropriate quarterly goal.

 

Does anyone have any advice?

Thanks

 

 

Goals Table    
MetricQuarterMetric QuarterGoal 
Projects Completed2023 Q2Projects Completed-2023 Q2200 
Defects2023 Q2Defects-2023 Q2100 
Employees2023 Q2Employees-2023 Q250 
Exceptions2023 Q2Exceptions-2023 Q220 
Projects Completed2023 Q3Projects Completed-2023 Q3250 
Defects2023 Q3Defects-2023 Q340 
Employees2023 Q3Employees-2023 Q3150 
Exceptions2023 Q3Exceptions-2023 Q315 
  -  
     
Data Tales    
Projects Completed    
Defects    
Employees    
Excepions    
     
Desired Output    
 2023 Q22023 Q22023 Q32023 Q3
 GoalActual Actual
Projects Completed200 250 
Defects100 40 
Employees50 150 
Exceptions20 15 
4 REPLIES 4
Anonymous
Not applicable

Does anyone else have a simpler solution?

Anonymous
Not applicable

Would you mind sharing the PBIX? It seems great but there is something I am missing.

Thanks

Anonymous
Not applicable

The reason being is that I need to not select a particular quarter but really need the scorecard for every quarter for all 4 metrics.  Thanks!

Sahir_Maharaj
Super User
Super User

Hello @Anonymous,

 

Can you please try the following approach:

 

1. Create measures (Repeat for Defects, Employees, and Exceptions)

Total Projects Completed = SUM('Projects Completed'[Value])

2. Retrieve goals from the Goals Table

Goal Value = 
LOOKUPVALUE(
    'Goals Table'[Goal],
    'Goals Table'[Metric], SELECTEDVALUE('Metrics Table'[Metric]),
    'Goals Table'[Quarter], SELECTEDVALUE('Metrics Table'[Quarter])
)

3. Combine actuals and goals

Actuals by Quarter = 
SWITCH(
    TRUE(),
    'Metrics Table'[Metric] = "Projects Completed", [Total Projects Completed],
    'Metrics Table'[Metric] = "Defects", [Total Defects],
    'Metrics Table'[Metric] = "Employees", [Total Employees],
    'Metrics Table'[Metric] = "Exceptions", [Total Exceptions]
)

Hope this helps.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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