Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Customer segmenting measure not showing all values.

Hello,

 

I am having an issue where I have a matrix tables, with names in the rows and months in the columns, and values being a measurable called 'samples'. On another page of my report, I have column charts which separarate these people into top 20%, 80-40% and bottom 40%. However, I am getting different values when adding up the total value for each month as compared to the Matrix table, mostly fopr 'Agents', not so much for clients.

 

Each chart and the respective matrix table use the same data from the same tables, those being 'AgentUKSampleCount', and 'ClientUKSampleCount'.

 

An example of the measure which segments my customers is:

Bottom 40 Agents =
var _s = SUMMARIZE(ALLSELECTED(AgentUKSampleCount),AgentUKSampleCount[AgentID],"sum",SUM(AgentUKSampleCount[NumSamples]))
var _1 = PERCENTILEX.INC(_s,[sum],0)
var _2 = PERCENTILEX.INC(_s,[sum],0.4)
var _0_40 = CALCULATETABLE(VALUES(AgentUKSampleCount[AgentID]),FILTER(_s,[sum]>=_1&&[sum]<=_2))
return
CALCULATE(COUNT(AgentUKSampleCount[AgentID]),FILTER(AgentUKSampleCount,[AgentID] in _0_40))
 
Here is the link to my pbix file:
 
As always any help is very much appreciated.
 
Screenshot 2022-10-13 163859.png

 

 

Screenshot 2022-10-14 102106.png

 

 

 

 

Screenshot 2022-10-14 102353.png

2 REPLIES 2
changqing
Resolver II
Resolver II

Hi @Anonymous ,

 

Not sure, this is my first exposure to the PERCENTILEX.inc function. When I looked at an example of it, I guessed that the reason it might be waiting is that it comes up with values that are not in the table parameters.

For example, the above percentilex. INC 0.75 returns 2.5, but this value is not in the raw table.

 

changqing_2-1665915177726.png

PERCENTILEX.INC

 

regards

CQ

Anonymous
Not applicable

Hi @changqing,

 

I am not using PERCENTILEX.inc function to get a percentile of samples though. I am using the function to summarise customers based on samples, splitting them into percentile groups based on each customers ID.

 

Given this, none of the expected results would be in the original table I would think.

 

The returned result is not the result of the percentile function but should show the number of samples for each customer within the percentage group.

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.