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.
Hi, I have a below table
Date | Test Name | Unique Cases Executed | Pass |
13-Jul-17 | Cup | 15 | 5 |
14-Jul-17 | Cup | 20 | 10 |
15-Jul-17 | Tea | 22 | 4 |
16-Jul-17 | Cup | 40 | 30 |
17-Jul-17 | Cup | 12 | 11 |
I want to create a report, where Pass% always shows Sum of all 'Unique Cases Executed' irrespective what date is selected.
Currently, if I apply date filter, the pass% changes based on 'Unique Cases Executed' between selected date range. How can I calculate static 'Unique Cases Executed'? Any help is appreciated. Sample of PowerBI report link: https://app.powerbi.com/view?r=eyJrIjoiZDIzNTViNmMtNjk0YS00YWZiLWE1ZDctYzNkN2Q3OWNlNDFhIiwidCI6IjhmM...
Solved! Go to Solution.
Hey,
Basically you can achieve what you on two ways:
Please provide the numbers you want to use to calculate the kpi and the result you expect
Wrap it in calculate and remove the date filter for total unique cases executed.
Total Unique Cases Executed = CALCULATE([Unique Cases Executed], ALL('Date'[Date]))
That removes the date filter. If you need to reapply the date filter to maintain a certain year or month you can add that back in calculate.
Then use the Total Unique Cases Executed to calculate your percentage instead.
You will need a date table. I am assuming you have one and it is called Date in my measure example.
Proud to be a Super User!
Hey,
Basically you can achieve what you on two ways:
Thanks Tom for quick reply.
Changing interaction between the time slicer and kpi visual will not work, because I need the sum of 'UniqueCasesExecuted'
Tried with DAX you mentioned, but its giving me same result
Please provide the numbers you want to use to calculate the kpi and the result you expect
In the above pic.. Last column ( yellow ) gives us Pass Percentage..
79% is coming because it calculates = 41 (pass) / 52 (Unique Cases Executed ) - both in blue
But the expected value is :
37% based on calculation 41(Pass) / 109 (Total Cases Executed ).
Wrap it in calculate and remove the date filter for total unique cases executed.
Total Unique Cases Executed = CALCULATE([Unique Cases Executed], ALL('Date'[Date]))
That removes the date filter. If you need to reapply the date filter to maintain a certain year or month you can add that back in calculate.
Then use the Total Unique Cases Executed to calculate your percentage instead.
You will need a date table. I am assuming you have one and it is called Date in my measure example.
Proud to be a Super User!
Thanks Kcantor, TomMartens for the solution.
The mistake I did while trying TomMartens solutions was to use Sheet1[Date].[Date] instead of Sheet1[Date]
Thank you for your time.
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 |
---|---|
107 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |