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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Arklur
Resolver II
Resolver II

Problems with context filters

This is how the model looks like (the relevant tables from it):

cR1m2AB

 

 

The Timesheet table contains the hours the workers worked with each Task.

 

The image below show my problem:

calc_edited.png

 

 

The "Planned days" column is in the "Task" table, the "Hours" is the SUM of the hours in the "Timesheet" table. My problem is that if I include the Workers in the report, the "Planned days" column becomes blank when there is no hours wrote on the task, but if I remove it, it works fine.

 

My 2 questions are:

 

1. Can someone explain this behaviour to me?

 

2. What Measure should I write to overcome this behaviour? (Currently I just dropped the "Task" table's "Planned days" column.

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Arklur,

In your report, there are in same level? 

1.PNG

For your scenario, please create a measure to get Planned days using the formula and check if it works fine.

Planned days=CALCULATE(SUM(Table[Planned days]),ALL(Table))


Best Regards,
Angelia

> In your report, there are in same level?

 

No, but it was intentional to show what's the problem.

 

As for your Measure, it's not working because it simply calculates the total "Planned days" for all the tasks, the Order isn't taken into account (it's not "Grouped By" the Order). Also, if I drill down to the "Worker Level", it...does weird things:

1gtIOec

 

 

 

Hi @Arklur,

Do you mins share your .pbix file for further analysis?

Best Regards,
Angelia

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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