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
Anonymous
Not applicable

Data Structure

I have a targets table for 3 offices for the current month and the format is as follows:

 

(The date column is for each day of the month, Office ID contains the ID of the office, Target is the target for the day)

 

Office ID | Date (day) | Target 

 

This pulls in from a database but only gives me rows up to the current date, for example, if I load the data today the date column runs per day from the 1st of March to the 26th of March. I would like to graph a burn-up chart so ideally I would like to add additional rows to the bottom of the table for EACH office ID for the remaining days in the month (27th, 28th, 29th, 30th, 31st) and calculating their remaining target in the same column, this way I can put it into a graph. 

 

My question is to understand the best way to do this and how.

 

Thanks

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous ,

 

New a date dimension table.

datedime = CALENDAR(DATE(YEAR(TODAY()),MONTH(TODAY()),1),EOMONTH(TODAY(),0))

2.PNG

 

Establish a one to many relationship between two tables.

1.PNG

 

Then, you can drag date field from date dimension onto chart axis, and add value fields or calcualted measures into chart. However, I cannot understand how to "calculating their remaining target in the same column"? Please illustrate with some sample data.

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks, Yuliana.

 

I've created my ideal output in Excel (I should have started with this, apologies). This will also have an Office ID column so I can view one office at a time. Target achieved is calculated from some revenue data from a database and then the remaining days is calculated as the (total target for the month - total achieved) / days remaining. This is for every value from the 27th to the 31st currently as below. Base target is the total target for the month / total days in the month:

 

Capture.PNG

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.