I have a sales table where I want to initially summarize by the ship to customer name in the temp table GroupTable. From there I want to return the 1st quartile value but the issue I am having is that I would like to use PERCENTILE.INC not PERCENTILEX.INC however I was not able to find a workaround considering my table I am referencing is a temp table. My end goal is to have dynamic quartiles based on a date slicer where I do not have to create a new static table.
Quantile1_Sales =
VAR GroupTable =
SUMMARIZE (
'Sales',
'Sales'[Customer Ship To],
"Sales2", SUMX ( 'Sales', 'Sales'[Sales] )
)
RETURN
PERCENTILEX.INC ( GroupTable, [Sales2], .25 )
Here is an example of what the Sales table looks like below.