Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi all,
Hoping someone can help. I'm looking to create a measure which demonstrates a Total % based on multiple count values of data in a given field. The measure would then be used in conjunction with a date slicer to have a total % not just per day, but for a selection of days. For example;
Table name: Observation
If "YES" or "MAYBE" are entered it would be calculated as a positive response which I'm looking to calculate as a % to display in a card visual.
On 01/06/2024, there are 2 "YES, 1 "MAYBE" and 1 "NO" response, calculating as 75%.
On 01/06/2024-03/06/2024 inclusive, there are 6 "YES", 3 "MAYBE", 9 "NO" responses, so the pecentage is 50%.
Thanks in advance for any solutions you can help with.
Solved! Go to Solution.
@Mike35 , Try using below formula
Total % =
DIVIDE(
CALCULATE(
COUNTROWS('YourTable'),
'YourTable'[Score] = "YES" || 'YourTable'[Score] = "MAYBE"
),
CALCULATE(
COUNTROWS('YourTable'),
ALLEXCEPT('YourTable', 'YourTable'[Date])
)
)
Proud to be a Super User! |
|
@Mike35 , Try using below formula
Total % =
DIVIDE(
CALCULATE(
COUNTROWS('YourTable'),
'YourTable'[Score] = "YES" || 'YourTable'[Score] = "MAYBE"
),
CALCULATE(
COUNTROWS('YourTable'),
ALLEXCEPT('YourTable', 'YourTable'[Date])
)
)
Proud to be a Super User! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |