Forum Discussion
PercentileX.INC returns blank
- 1 year ago
Thank you, you helped me get on the right track.
I got it working with= PERCENTILEX.INC( Summarize( Facttable, Table1[Group1]) ), [KPI], 0.5 )I still have no idea why values acted as it did though.
Once I was happy it was workng I enhanced it to enable me to filter out smaller groups
KPI = PERCENTILEX.INC( FILTER( ALLSELECTED(Table1[Group1]), [KPI_Denominator] >= 5 ), [KPI], 0.5 )
itchyeyeballs , Try below method
Use ALL Function: Modify your DAX formula to use the ALL function to ignore any filters on Table1[Group1]. This can help in ensuring that the percentile calculation considers all values regardless of the slicer selection.
PERCENTILEX.INC(ALL(Table1[Group1]), [KPI], 0.5)
Check KPI Calculation: Ensure that the [KPI] measure is correctly calculated and does not return blank or error values. You can add a check to handle any potential division by zero or other issues:
KPI = IF(
ISBLANK([KPI_Denominator]) || [KPI_Denominator] = 0,
BLANK(),
DIVIDE([KPI_Numerator], [KPI_Denominator])
)
Debugging: Create a table visualization to display the values of Table1[Group1] and [KPI] to ensure that the data is as expected and there are no unexpected blanks or errors.
- itchyeyeballs1 year ago
Impactful Individual
Thank you, you helped me get on the right track.
I got it working with= PERCENTILEX.INC( Summarize( Facttable, Table1[Group1]) ), [KPI], 0.5 )I still have no idea why values acted as it did though.
Once I was happy it was workng I enhanced it to enable me to filter out smaller groups
KPI = PERCENTILEX.INC( FILTER( ALLSELECTED(Table1[Group1]), [KPI_Denominator] >= 5 ), [KPI], 0.5 )