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
Anonymous
Not applicable

Empty row not in Summarize table

Hi all,

 

I created a "Student Target (final)" measure by using SUMMARIZE function. However, it does not summarize the data when Country is blank. Does anyone know how I can improve on the measure so that 472 will appear in the Student Target (final) measure?

[Edited] Also, noticed the grand total is returning a very large number (32,205). Does anyone know how can I fix this to get 3,528 (1,695+1,833)?

 

Student Target (final) = 
var val=IF(SELECTEDVALUE(Dim_Country[Country])="Singapore",CALCULATE(_Measures[Local], ALL(Dim_Country[Country])), _Measures[International])
var tbl=ADDCOLUMNS(SUMMARIZE(Dim_Country, Dim_Country[Country]), "Target", val)
return
SUMX(tbl, [Target])
 

beekee_0-1620151885451.png

 

 

Regards,

BK

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

Sorry, not very clear. Can you provide me with some dummy data and expected results, or share with me the pbix file.

And I am a little puzzled where did 1,695 and 1,833 come from?

 

For now, I can only suggest you to try

IF(ISBLANK(Dim_Country[Country])),[Measure],Student Target (final))

 

 

Best Regards,

Stephen Tao

 

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

 

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
Top Kudoed Authors