The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
75 | |
52 | |
50 |
User | Count |
---|---|
132 | |
124 | |
78 | |
64 | |
61 |