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

Measure to calculate sum of week start date project wise

Hi Guys,

 

I am working to build a dashboard, and I got stuck. I want to put a Project level filter to show the weekly total estimate to the weekly actual in the one graph.  

The weekly actuals come in rows and the estimate is in the column with the project name in a row. I try to calculate it with sumx function but it didn't work. I am not able to share actual data with you guys but really hope this hypothetical work.

 

Filter: Project Name (Done)

Graph: to show a graph of the weekly trend  with weekly (Monday(Estimate) to Actual)

 

Actuals:

 

1Project IDProject NameEmployee IDEmployee NameWeekEnd DateActuals
2Project ID1Project Name1Employee ID1Employee Name104-12-20202
3Project ID2Project Name2Employee ID1Employee Name111-12-20204
4Project ID3Project Name3Employee ID1Employee Name118-12-20204

 

Estimate: 

                                                                                                            Week Start Date

1Project IDProject NameEmployee IDEmployee Name07-12-202014-12-202021-12-202028-12-2020
2Project ID1Project Name1Employee ID1Employee Name12222
3Project ID2Project Name2Employee ID1Employee Name12222
4Project ID3Project Name3Employee ID1Employee Name14444

 

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @shefalinishad11 

 

you have to normalize your estimate table before and bring the date-values that are in columns to row level. This you can achive in PowerQuery with Table.UnpivotOtherColumns. After that you may need to adapt the dates as well (calculating week start from the week end-days or to add a calcuated column that gives you week number and year.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

6 REPLIES 6
Jimmy801
Community Champion
Community Champion

Hello @shefalinishad11 

 

you have to normalize your estimate table before and bring the date-values that are in columns to row level. This you can achive in PowerQuery with Table.UnpivotOtherColumns. After that you may need to adapt the dates as well (calculating week start from the week end-days or to add a calcuated column that gives you week number and year.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Hey @Jimmy801 

Thanks, it worked really well. I got all the values in a row.

 

I have one more query here... I created a measure calendar table and link to try to create a connection between the Actual table  (weekend) and Estimate (Weekend), show that I can put the graph with a week number & week start date. But I am not able to do so. Is there any way around it?

Hello @shefalinishad11 

 

create a calendar table in DAX or Power Query where you add the weeknumber/year. Then connect both of your tables to this calendar table. Now you can use the Weeknumber/year in the date-dimension to bring together your tables.

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Hey @Jimmy801 ,

 

While creating a relationship between Calendar to Estimate and Current table, I am able to create a relation between current and calendar but when I try to do for Estimate and calendar. it showing the below error.

 

 

Errors.jpg

 

 

 

Hello @shefalinishad11 

 

this is a topic of your datamodel. Seems there are other relationships that make this relationship impossible to make. But without any knowlegdge of your datamodel I can't give any support

 

If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Hey @Jimmy801 ,

 

I cannot share my data and I am working on a budget vs the actual dashboard:

 

1. I have 2 Files - The estimated file(Yearly data) and the Actual File(update weekly). They both have the same format I shared above.

2. I have 1 more file, which has a yearly budget as per the project code.

 

What I have in mind to prepare:

 

> To create Budget vs actual data as per project and employee to show variance with every week between estimate to actual  (graph and table vise).

> Overall project health and status.

> Project trend from start to end when we select the project from the filter and same for an employee.

> Week Start date has an estimate and Week-end date have actuals.

> Line Graph showing a trend and X axis have a week start date and week-end date.

 

Table I am using right now:

  1. Estimate table
  2. Actual Table
  3. Budget Table
  4. Customize Calendar Table.

 

 

 

 

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors