- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Block relational filter
Hello everyone,
How can I use the calculation of a measure without considering the filter of the relationship column between tables?
I have these two tables, Table Employee and Table Calendar.
Relationship: Day Worked ------ Date
The Day Worked column contains only the days the employee worked
The Date column contains all days of the year.
The column Business day considers 1 being (Monday to Friday) and 0 being (Saturday and Sunday).
Using the Dax measure below, I can count the working days for each period of time, but I would like this value to be locked for each filtered employee.
Business day by Employee = CALCULATE(COUNT('Table Calendar'[Date]); 'Table Calendar'[Business day] = 1)
It is possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
Use the all formula on the calculation:
Business day by Employee = COUNTROWS(FILTER(ALLSELECTED('Table Calendar'); 'Table Calendar'[Business day] = 1))
Not on computer did this by heart may need some changes.
Regards
Miguel Félix
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
Check out my blog: Power BI em Português- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Anonymous Try this:
Business day by Employee =
CALCULATE (
COUNT ( 'Table Calendar'[Date] ),
'Table Calendar'[Business day] = 1,
ALL ( TableEmploye )
)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
Try modifying your dax as follows:
Business day by Employee = CALCULATE(COUNT('Table Calendar'[Date]); FILTER(ALL('Table Calendar'), 'Table Calendar'[Business day] = 1))
Thanks,
Pragati
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Anonymous ,
Use the all formula on the calculation:
Business day by Employee = COUNTROWS(FILTER(ALLSELECTED('Table Calendar'); 'Table Calendar'[Business day] = 1))
Not on computer did this by heart may need some changes.
Regards
Miguel Félix
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
Check out my blog: Power BI em Português
Helpful resources
Subject | Author | Posted | |
---|---|---|---|
09-25-2024 01:24 AM | |||
10-10-2024 03:08 PM | |||
08-12-2024 01:30 AM | |||
09-18-2024 06:07 AM | |||
07-10-2024 08:08 AM |
User | Count |
---|---|
122 | |
107 | |
85 | |
52 | |
46 |