I have a pivot table with 2 slicers to manage population (Morning/Afternoon; Visit type), 3 subgroups with ID and Names as rows and 3 calculated measures as columns:
1. Basic count formula:=COUNTROWS(Visit)
2. Long Median formula:
=(MINX (FILTER (VALUES (Visit[Colum1]),
CALCULATE (COUNT (Visit[Colum1]), Visit[Colum1]
<= EARLIER (Visit[Colum1])) > COUNT ( Visit[Colum1]) / 2), Visit[Colum1]...
3. Lookup/SUM formula:=IF(CALCULATE(SUM(PE_new[DenominatorNBR2]), RELATEDTABLE(Visit)) < 30, BLANK(),
CALCULATE(SUM(PE_new[NumeratorNBR2]), RELATEDTABLE(Visit)) /
CALCULATE(SUM(PE_new[DenominatorNBR2]), RELATEDTABLE(Visit)))
The problem I'm trying to find a solution to is to show only rows with values that are equal or greater than 10 in the column C (Measure 1 (Sum)). I can do that using "values filters" for ID or Names columns but in this case subtotals will be changing as well (decreasing the number of records) but I need to show subtotals for each group as a whole, not only calculations for those rows with more than 10 values.
Is there a way to write/change a DAX formula for subtotals where it will calculate values for the whole group, not taking into account "values filters"? Or maybe there are other options to show only rows with values that are equal or greater than 10 but calculate values for the whole group in subtotals?
Will be grateful for any help!
This is original table:
This is what I get now (subtotals are based on the current/filtered pivot records: values that are equal or greater than 10 in the column C (Measure 1 (Sum))):
Looking for this result (subtotals are shown for each group as a whole):
A screenshot with a "values filters" filter: