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
Dr_Chris
Helper I
Helper I

Newbie Question - struggling to refer to values in another table

Hi

I have two tables

Table 1 - Production
Contains record of products booked into the warehouse

TimestampProductQuantity
20/07/2021 13:45ABC2
20/07/2021 14:12XYZ32
20/07/2021 16:38ABC54


Table 2 - Weekly Targets
Simply contains the target production per week

Week NumberProductTarget
28ABC300
29ABC

380

30ABC410
28XYZ60
29XYZ130
30XYZ110

 

I'm trying to display a series of guages - one for each product and for each day of the week, showing the numbers produced each day against the daily target based on the weekly target / 5  (So in week 28 we need to make 60 units of ABC each day to meet out target)

I've manage to create the guages for each day of the week and each product from the 'Production' table
I've also got the filters working so that I only use the production quantities for this week in each guage
I can also
- add a column to the 'Weekly Targets' table that contains the [Daily Target]
- add a colum to the 'Production' Table that contains the Week Number for that entry


but now I can't fathom out how to use the new 'Weekly Target'[Daily Target] values to set the target in the guage

I feel a bit dim...

Thanks

Chris

 

1 REPLY 1
amitchandak
Super User
Super User

@Dr_Chris , Based on what I got, One way is split weekly target to daily in the table, Using a date table and week year, you can join both on year week and divide target by 5 or 7. if needed you can make weekend target as 0

 

Create a date table in power query, with weekday and year and then merge and create new custom column

Date Table in Power Query: https://youtu.be/so_A22HXbwM

 

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

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.

Top Solution Authors