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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Elisa112
Helper V
Helper V

Summarising tables without aggregation

Hello Experts

 

I am trying to summarise a student assessment table without aggregating the scores.  I want to compare the difference (improved/declined) in another column but first of all I have a problem summrising the columns without power BI aggregating the scores. 

 

I have tried this to summarise the table

 

Assessment Summary = ADDCOLUMNS( ADDCOLUMNS(SUMMARIZE
('vBIStudent_Assessment','vBIStudent_Assessment'[Student ID], vBIstudent_Assessment[Assessment ID]),
"First Assessment Meeting",MINX(FILTER('vBIStudent_Assessment','vBIStudent_Assessment'[Student ID]=EARLIER('vBIStudent_Assessment'[Student ID])
&& 'vBIStudent'[Assessment Type]="Beginner" && 'vBIStudent_Assessment'[Assessment Stage]="First Assessment Meeting"),
'vBIStudent_Assessment'[Assessment Value (IS Score)]),
"First Assessment Review",MINX(FILTER('vBIStudent_Assessment','vBIStudent_Assessment'[Student ID]=EARLIER('vBIStudent_Assessment'[Student ID])
&& 'vBIStudent_Assessment'[Assessment Type]="Beginner" && 'vBIStudent_Assessment'[Assessment Stage]="First Review Meeting"),
'vBIRefugee_Assessment'[Assessment Value (IS Score)],
))

 

but I get a minx error :

 

Elisa112_0-1729175786711.png

 

the solutions should look something like this

 

Student ID   Assessment ID     Date    First Meeting       First Review      Difference +/-   Second Meeting...

100               200                     1 Jan      25                        30                       5

 

All guidance much appreciated

thank

 

4 REPLIES 4
Anonymous
Not applicable

Hi, @Elisa112 

Based on your information, I create sample table:

vyohuamsft_0-1729232783161.png

Then create measures:

 

First Assessment Meeting = 
CALCULATE(
    MIN('Table'[Assessment Value (IS Score)]),
    'Table'[Assessment Type] = "Beginner" &&
    'Table'[Assessment Stage] = "First Assessment Meeting"
)
First Assessment Review = 
CALCULATE(
    MIN('Table'[Assessment Value (IS Score)]),
    'Table'[Assessment Type] = "Beginner" &&
    'Table'[Assessment Stage] = "First Review Meeting"
)
Difference +/- = 
[First Assessment Review] - [First Assessment Meeting]

 

 

Put this measure in table view:

vyohuamsft_1-1729233099040.png

 

How to Get Your Question Answered Quickly

Best Regards

Yongkang Hua

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

Thanks, but I need to create a summary table before i create the measures and this is what I have an issue with

any ideas?

thank  you

dharmendars007
Super User
Super User

Hello @Elisa112 , 

 

Using CALCULATE Instead of MINX:

1.CALCULATE is better suited for this case since it allows filtering the table directly.

2.Each CALCULATE block fetches the minimum score for specific assessment stages.

 

Assessment Summary =
ADDCOLUMNS(
SUMMARIZE(
vBIStudent_Assessment,
vBIStudent_Assessment[Student ID],
vBIStudent_Assessment[Assessment ID]),
"First Meeting Score",
CALCULATE(
MIN(vBIStudent_Assessment[Assessment Value (IS Score)]),
vBIStudent_Assessment[Assessment Stage] = "First Assessment Meeting",
vBIStudent_Assessment[Assessment Type] = "Beginner"),
"First Review Score",
CALCULATE(
MIN(vBIStudent_Assessment[Assessment Value (IS Score)]),
vBIStudent_Assessment[Assessment Stage] = "First Review Meeting",
vBIStudent_Assessment[Assessment Type] = "Beginner"),
"Difference",
[First Review Score] - [First Meeting Score])

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Thank you @dharmendars007 

but I am getting this error:

Elisa112_0-1729180165583.png

This is the name of the added columns I am trying to use, all is well until I get to the difference column and then the added columns are not recognised

 

Any idea why

thanks again

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors