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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Sri_phani
Helper III
Helper III

Adding the Quartile summary

Hi, 

 

Can someone help me summarize the Quartiles that I created using a Measure. 

I have data that has the Customer Resolve Survey score and I created a Quartile using this measure: 

 

Res% Quartile =
VAR AgentScore = [Resolve]
VAR FilteredData = ALLSELECTED('1_Core Raw data'[Start of Month],'1_Core Raw data'[Partner & Site],'1_Core Raw data'[Team manager],'1_Core Raw data'[Final LOB],'1_Core Raw data'[agent_email], '1_Core Raw data'[File])
 
RETURN
   IF(NOT ISBLANK([Resolve]),SWITCH(
        TRUE(),
        AgentScore >= PERCENTILEX.INC(FilteredData, [Resolve], 0.75), "Q1",
        AgentScore >= PERCENTILEX.INC(FilteredData, [Resolve], 0.50), "Q2",
        AgentScore >= PERCENTILEX.INC(FilteredData, [Resolve], 0.25), "Q3",
        AgentScore >= PERCENTILEX.INC(FilteredData, [Resolve], 0.00), "Q4"
        ))
 
Now the requirement is, I have to show the number of agents and the max and min score based on the available table. Like I provided in the below snapshot. 
 
Sri_phani_1-1719931085273.png

 

Here is glance of dataset that I have, I have single dataset which has columns such as Lyft ID, team manager, LOB, Date, Start of Month. All these I will use as a slicer to filter the visual. 

 

Sri_phani_1-1719931407788.png

Kindly help me! Thanks. 

7 REPLIES 7
Sri_phani
Helper III
Helper III

Hi @Anonymous , Please find the same file below. while I am unable to provide all the columns that can replicate exact columns as per the image. This data set is mostly a replica of the one I am working on. 

 

Quartile file 

 

Quartile.png

 

 

Anonymous
Not applicable

Hi @Sri_phani ,

I create a table as you mentioned.

vyilongmsft_0-1720517202459.png

Then I create a measure and here is the DAX code.

Measure = 
VAR _Resolve =
    MAX ( 'Table'[Resolve] )
RETURN
    IF (
        NOT ISBLANK ( _Resolve ),
        SWITCH (
            TRUE (),
            _Resolve >= 0.75, "Q1",
            _Resolve < 0.75
                && _Resolve >= 0.5, "Q2",
            _Resolve < 0.5
                && _Resolve >= 0.25, "Q3",
            _Resolve < 0.25
                && _Resolve >= 0, "Q4",
            BLANK ()
        )
    )

vyilongmsft_1-1720517460629.png

I create a color DAX code and put it into the Measure column.

Color = 
SWITCH(
    TRUE(),
    'Table'[Measure] = "Q1", "Green",
    'Table'[Measure] = "Q2", "Blue",
    'Table'[Measure] = "Q3", "Orange",
    "Red"
)

vyilongmsft_2-1720517592158.pngvyilongmsft_3-1720517613143.pngvyilongmsft_4-1720517629991.png

 

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous,

 

The question is about summarizing the Quartile as a table, like this. Not about the conditional formatting. Can you please help with this. 

Sri_phani_1-1720541789392.png

 

 

Hi @Anonymous,

 

The question is about summarizing the Quartile as a table, like this. Not about the conditional formatting. Can you please help with this. 

Sri_phani_1-1720541789392.png

 

 

Sri_phani
Helper III
Helper III

@Anonymous Thank you for responding. I am unable to group by  "[Res% Quartile]"

Not just this, I am unable to group by using any of the measures.  

 

Anonymous
Not applicable

Hi @Sri_phani ,

I'm sorry I didn't achieve the results you expected, if you can provide me with specific example data or .pbix files, I can provide further help and answers.

 

 

Best Regards

Yilong Zhou

Anonymous
Not applicable

Hi @Sri_phani ,

I think you can create a new table to show the number of agents and the max and min scores for each quartile.

Quartile Summary =
SUMMARIZE (
    '1_Core Raw data',
    [Res% Quartile],
    "Number of Agents", COUNT ( '1_Core Raw data'[agent_email] ),
    "Max Score", MAX ( '1_Core Raw data'[Resolve] ),
    "Min Score", MIN ( '1_Core Raw data'[Resolve] )
)

You can also add slicer to filter the data.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.