Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear members,
i've got some headaches with calculation which is looks easy to calculate by eyes and impossible for me to get correct result in PBI.
Goal: to get correct claims statistics and their visualization
Sample data are located here https://dropmefiles.com/AdxlX
Data description:
Rules for KPI calculation:
Obstacles/headaches:
using:
Nr of confirmed orders = CALCULATE(DISTINCTCOUNT('Sheet1'[ORDER number]);FILTER('Sheet1';'Sheet1'[ORDER number]>0&&'Sheet1'[Claim is taken for KPI calculation or not]="taken"&&'Sheet1'[Investigation result]="confirmed"))
Nr of NOT confirmed orders = CALCULATE(DISTINCTCOUNT('Sheet1'[ORDER number]);FILTER('Sheet1';'Sheet1'[ORDER number]>0&&'Sheet1'[Claim is taken for KPI calculation or not]="taken"&&'Sheet1'[Investigation result]="not confirmed"))
i have got oucome that the same order is calculated as confirmed and not confirmed due to some of its SKUs are confirmed and not confirmed (as an example above, order 53901 )
is it possible somehow to calculate correct results for 2 questions?
thank you in advance.
Solved! Go to Solution.
Hi @Anonymous ,
Do you mean to show "Prompt page" based on which measure you select? Tooltip will show values based on the context of current row, so I think it is impossible to do it in one table. You could create two tables with two measures in tooltip page.
Yes =
CONCATENATEX (
CALCULATETABLE (
DISTINCT ( Sheet1[ORDER number] ),
FILTER ( Sheet1, 'Sheet1'[Investigation result] = "confirmed" )
),
'Sheet1'[ORDER number],
", "
)Not =
CONCATENATEX (
CALCULATETABLE (
DISTINCT ( Sheet1[ORDER number] ),
FILTER ( Sheet1, 'Sheet1'[Investigation result] = "not confirmed" )
),
'Sheet1'[ORDER number],
", "
)
Here is the result.
Hi @Anonymous ,
Do you mean to show "Prompt page" based on which measure you select? Tooltip will show values based on the context of current row, so I think it is impossible to do it in one table. You could create two tables with two measures in tooltip page.
Yes =
CONCATENATEX (
CALCULATETABLE (
DISTINCT ( Sheet1[ORDER number] ),
FILTER ( Sheet1, 'Sheet1'[Investigation result] = "confirmed" )
),
'Sheet1'[ORDER number],
", "
)Not =
CONCATENATEX (
CALCULATETABLE (
DISTINCT ( Sheet1[ORDER number] ),
FILTER ( Sheet1, 'Sheet1'[Investigation result] = "not confirmed" )
),
'Sheet1'[ORDER number],
", "
)
Here is the result.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |