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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
98 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |