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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

Exclude count of a specific data in the total of an array

Hi all 😁

I currently have a matrix in which I group and show the total of a series of values, but I have a problem 😭 and I hope you can help me.

What I want is that of the total value generated exclude from the sum a specific row but that additionally this row is visible (ie do not remove the row only omit from the total count) as you can see in the attached image within that total "26" should not add the value "9" ie the value I should show is 17

WhatsApp Image 2020-05-28 at 3.27.50 PM.jpeg

thank you very much for your advice and help. 🙏

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Syndicate_Admin 

Check my example, you can use the below HASONEVALUE() function to ignore morning in the Total.

 

Measure = IF(HASONEVALUE('Table'[Value]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER('Table',[Time of Day]<>"Morning")))

Vpazhenmsft_1-1626318232719.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Syndicate_Admin 

Check my example, you can use the below HASONEVALUE() function to ignore morning in the Total.

 

Measure = IF(HASONEVALUE('Table'[Value]),SUM('Table'[Value]),CALCULATE(SUM('Table'[Value]),FILTER('Table',[Time of Day]<>"Morning")))

Vpazhenmsft_1-1626318232719.png

 

 

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Syndicate_Admin , isinscope should help 

First, create a total  measure

Assuming column is row or group by or axis

 

 total measure = calculate(sum(Table[Value]), filter(allselected(Table, not(Table[column] in {"Nuevous En el Mes"}))))

Shift measure = if(isinscope(Table[column]) , sum(Table[Value]) , [total measure])

 

Shift measure you have use. You can more columns in if to check isinscope if needed

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Syndicate_Admin
Administrator
Administrator

Up, porfa someone who can help me

Hi @Syndicate_Admin .

 

You can find the solution for that on the below link;

https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=91f809c1-...

 

Regards,

Sanket Bhagwat.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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