Forum Discussion
Calculate All : Include non shown filter
- 7 years ago
Brianoreilly Please try this as a "New Measure"
Test77 = CALCULATE(SUM(Test77Measure[BillableDays]),FILTER(ALL(Test77Measure),Test77Measure[ProjectID]=SELECTEDVALUE(Test77Measure[ProjectID])))
Test Data :
Output:
Given your sample data, I was able to do the following:
1. Create a calculated table with the following DAX:
Project Table = SUMMARIZE('Timecard Table', 'Timecard Table'[Project Id], "Billable Days", SUM('Timecard Table'[Billable Days]))
2. Create a relationship between the Project Table and the Timecard Table (autodetect was able to pick up the relationship)
3. Create a table visualization with the following fields:
- Resource Name
- Project Id
- Billable Days (from the Timecard Table)
- Billable Days (from the Project Table)
4. Set the Billable Days (from the Project Table) to not summarize in the table visualization.
Here's the resultant pbix file for your review https://github.com/ssugar/PowerBICommunity/raw/master/community-sol-560918.pbix
Thanks ssugar,
However this will not work as I want to use a date slicer and I need to calculate this via a measure.
Thanks for trying though.
Regards
- PattemManohar7 years agoCommunity Champion
Brianoreilly Please try this as a "New Measure"
Test77 = CALCULATE(SUM(Test77Measure[BillableDays]),FILTER(ALL(Test77Measure),Test77Measure[ProjectID]=SELECTEDVALUE(Test77Measure[ProjectID])))
Test Data :
Output: