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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nasolme
Helper I
Helper I

hide subtotal

Hi community !

I would like to keep only the grand total for "Loan" columns. 

I can use :

IF(HASONEVALUE(ASSET[ASSET_NUMBER]),blank(),sumx(SUMMARIZE(DATA,DATA[FILE_NUMBER],"average",average(DATA[ENCOURS.MT_EXPO_BRUT_Engagements])),[average]))

 

But logically, i get blank row  when i have only one asset number.


Somebody has an idea to correct my measure ?

 

Capture d’écran 2022-04-27 130400.jpg

 

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@nasolme 
IF(ISINSCOPE(ASSET[ASSET_NUMBER]),blank(),sumx(SUMMARIZE(DATA,DATA[FILE_NUMBER],"average",average(DATA[ENCOURS.MT_EXPO_BRUT_Engagements])),[average]))

View solution in original post

2 REPLIES 2
nasolme
Helper I
Helper I

I didn't know this function. Thanks @SpartaBI  !!!

SpartaBI
Community Champion
Community Champion

@nasolme 
IF(ISINSCOPE(ASSET[ASSET_NUMBER]),blank(),sumx(SUMMARIZE(DATA,DATA[FILE_NUMBER],"average",average(DATA[ENCOURS.MT_EXPO_BRUT_Engagements])),[average]))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.