Hello,
I am trying to show the count of specific observations as a percentage of the total observations made. My solution below works great but as soon as I add a datestamp slicer to the page, where I now want to see the percentage of specific responses made within a specific date range, the percentages no longer correspond.
This is the calculated measure:
%Observation =
DIVIDE(
COUNT(Sheet1[Observation]),
CALCULATE(
COUNT(Sheet1[Observation]),ALL(Sheet1[Observation])
)
)
So when I place a card visual with %Observation and filter for "Too Cold" which in the sample below is 4 out of 12 observations my card shows %33.33, Great
But once I add datestamp slicer and change the date range a little, the percentages do not make sense.
Sample data:
Observation | Datestamp | Screen | Location |
Too Cold | 3/1/2023 | Thermal Comfort | A |
Too Hot | 3/2/2023 | Thermal Comfort | B |
Too Hot | 3/1/2023 | Thermal Comfort | C |
Too Cold | 3/1/2023 | Thermal Comfort | A |
Too Cold | 3/20/2023 | Thermal Comfort | A |
Too Cold | 2/21/2023 | Thermal Comfort | B |
Comfortable | 2/21/2023 | Thermal Comfort | C |
Comfortable | 2/20/2023 | Thermal Comfort | C |
Comfortable | 2/20/2023 | Thermal Comfort | C |
Comfortable | 3/2/2023 | Thermal Comfort | A |
Comfortable | 3/2/2023 | Thermal Comfort | A |
Comfortable | 3/3/2023 | Thermal Comfort | B |
Solved! Go to Solution.
Hi,
Check this file.
Hi,
Check this file.
Ashish, creating a new table with a continuous calendar resolved the issue. Thank you for providing the sample file.
You are welcome.
User | Count |
---|---|
118 | |
63 | |
61 | |
41 | |
40 |
User | Count |
---|---|
118 | |
67 | |
65 | |
64 | |
50 |