March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |