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
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
Employee
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
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.