Forum Discussion
Percent Difference between two visuals utilizing slicers and two different tables
- 1 year ago
HIi JCATERINO ,
Thank you for your prompt responses and for sharing the sample data.
I’ve implemented the required logic and uploaded the updated PBIX file for your review. Kindly take a moment to go through it and let me know if there’s anything that needs to be revised or improved.
Looking forward to your feedback.
Best regards,
Lakshmi
Hello Lakshmi
| Table 1 Slicers | ||||
| Filter Month | Completed Year | Order Site | Class of Work | Distinct Count |
| 1 | 2024 | A | A | 5 |
| Table 2 Slicers | ||||
| Filter Month | Completed Year | Order Site | Class of Work | Distinct Count |
| 1 | 2025 | A | A | 3 |
| What I like to return | ||
| Percent Differenct | -40 |
Here is an example table - the table is duplicated so I can use slicers for each table to return the distinct count value like the example above
| Order Name | Month Completed | Order Completed Year | Order Site | Class of Work |
| 20NAR001 | 1 | 2024 | A | A |
| 20NAR001 | 1 | 2024 | A | B |
| 20NAR001 | 2 | 2024 | A | C |
| 20NAR002 | 1 | 2024 | A | A |
| 20NAR002 | 2 | 2024 | A | B |
| 20NAR002 | 1 | 2024 | A | C |
| 20NAR003 | 1 | 2024 | A | A |
| 20NAR003 | 1 | 2024 | A | B |
| 20NAR003 | 2 | 2024 | A | C |
| 20NAR004 | 2 | 2024 | A | A |
| 20NAR004 | 2 | 2024 | A | B |
| 20NAR004 | 2 | 2024 | A | C |
| 20NAR005 | 1 | 2024 | A | A |
| 20NAR005 | 1 | 2024 | A | B |
| 20NAR005 | 1 | 2024 | A | C |
| 20CMR001 | 2 | 2024 | A | A |
| 20CMR001 | 2 | 2024 | A | B |
| 20CMR001 | 1 | 2024 | A | C |
| 20CMR002 | 2 | 2024 | A | A |
| 20CMR002 | 1 | 2024 | A | B |
| 20CMR002 | 1 | 2024 | A | C |
| 20CMR003 | 1 | 2024 | A | A |
| 20CMR003 | 2 | 2024 | A | B |
| 20CMR003 | 2 | 2024 | A | C |
| 21NAR001 | 2 | 2025 | A | A |
| 21NAR001 | 1 | 2025 | A | B |
| 21NAR001 | 1 | 2025 | A | C |
| 21NAR002 | 2 | 2025 | A | A |
| 21NAR002 | 2 | 2025 | A | B |
| 21NAR002 | 2 | 2025 | A | C |
| 21NAR003 | 1 | 2025 | A | A |
| 21NAR003 | 1 | 2025 | A | B |
| 21NAR003 | 2 | 2025 | A | C |
| 21CMR001 | 1 | 2025 | A | A |
| 21CMR001 | 1 | 2025 | A | B |
| 21CMR001 | 2 | 2025 | A | C |
| 21CMR002 | 2 | 2025 | A | A |
| 21CMR002 | 1 | 2025 | A | B |
| 21CMR002 | 1 | 2025 | A | C |
| 21CMR003 | 1 | 2025 | A | A |
| 21CMR003 | 2 | 2025 | A | B |
| 21CMR003 | 2 | 2025 | A | C |
| 21CMR004 | 2 | 2025 | A | A |
| 21CMR004 | 2 | 2025 | A | B |
| 21CMR004 | 1 | 2025 | A | C |
HIi JCATERINO ,
Thank you for your prompt responses and for sharing the sample data.
I’ve implemented the required logic and uploaded the updated PBIX file for your review. Kindly take a moment to go through it and let me know if there’s anything that needs to be revised or improved.
Looking forward to your feedback.
Best regards,
Lakshmi