Forum Discussion
Trouble calculating Percentage based on Card
Hello team BI,
I have a problem with percentage calculation
I made 2 slicers with:
- Date sent Quote: that interact with QUOTE AMOUNT ISSUED and NB QUOTE ISSUED
- Order Date: that interact with QUOTE AMOUNT EARNED and NB QUOTE EARNED and both Transformation Quote
I have the correct data with amount & nd but not Transformation with the count of percentage
Clearlly, 170/375 = 45% and not 84% as shown in Bi.
I found out, that in percentage Bi didn't took the filtred data shown in card but the whole table data.
The dax used to calculate Percentage:
| POINTAGE | TYPE | PRICE HT € | DATE SENT QUOTE | ORDER DATE |
| Maintenance | 72,416.16 € | 14/09/2022 | 08/09/2021 | |
| Transféré | Maintenance | 1,290.50 € | 27/01/2022 | 28/01/2022 |
| Travaux | 930.00 € | 07/02/2022 | 10/02/2022 | |
| Transféré | Travaux | 1,863.10 € | 02/02/2022 | 10/02/2022 |
| Transféré | Travaux | - € | 07/02/2022 | 10/02/2022 |
| Maintenance | 1,860.00 € | 10/02/2022 | 16/02/2022 | |
| Transféré | Travaux | 6,437.80 € | 25/01/2022 | 17/02/2022 |
| Transféré | Travaux | 8,604.20 € | 12/01/2022 | 18/02/2022 |
| Transféré | Travaux | 1,257.50 € | 13/01/2022 | 18/02/2022 |
| Transféré | Travaux | 667.60 € | 11/02/2022 | 21/02/2022 |
2 Replies
- amitchandak
Super User
BI_ITEMS , Try measure like
nb quote earned =
CALCULATE(
COUNTROWS('BDD TRY'),
'BDD TRY'[POINTAGE] = "Transféré"
)
nb quote issued =
CALCULATE(
COUNTROWS('BDD TRY')
)
Transformation quote (%nb) =
DIVIDE(
[nb quote earned],
[nb quote issued],
0
)- BI_ITEMSRegular Visitor
Hello!
Thanks for your reply!
However, I aleardy apply those measure but same probleme.