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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

problem in removing Subtotal

01.JPG

I have used the below formula for removing the Subtotals. But for Company with single row the subtotal is not removing.

Similarly for the CAP_TYPE column if 2 rows has large then the TOTAL is large. it should be empty.

 

Formula for removing Sub_Total is 

M_O/S SHARES (m) = IF(HASONEVALUE('Merge2-Used for Earnings Monitor Tbale Format'[Os_Shrs_m]), VALUES('Merge2-Used for Earnings Monitor Tbale Format'[Os_Shrs_m]), BLANK())

 

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create the measures as below to work on it.

A = IF([M_CAP TYPE] = "Large",1,0)
A1 = SUMX('Merge2-Used for Earnings Monitor Tbale Format',[A])
A2 = IF(ISINSCOPE('Merge2-Used for Earnings Monitor Tbale Format'[CONAME]),[M_CAP TYPE],IF([A1]>=2,"Large",BLANK()))

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

6 REPLIES 6
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create the measures as below to work on it.

A = IF([M_CAP TYPE] = "Large",1,0)
A1 = SUMX('Merge2-Used for Earnings Monitor Tbale Format',[A])
A2 = IF(ISINSCOPE('Merge2-Used for Earnings Monitor Tbale Format'[CONAME]),[M_CAP TYPE],IF([A1]>=2,"Large",BLANK()))

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

If and ISINCOPE function should help you in your scenario. Kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable
Anonymous
Not applicable

@Anonymous  Please select matrix click on format pane and turn off the row subtotal optionSubtotal.png

Anonymous
Not applicable

@Anonymous  i need Subtotal for limited column. so that is why i am removing subtotal for the columns which i needed.

vjnvinod
Impactful Individual
Impactful Individual

 

@Anonymous 

use "table" instead of "Matrix" (from the visualization pane)

if the data is loaded like this, then use power query and remove those rows

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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